From b0368619831b06d6bbbf9f76200a3b7d8ed91706 Mon Sep 17 00:00:00 2001 From: Nachuan Tang Date: Sun, 24 Jul 2022 15:31:02 -0400 Subject: [PATCH] add support for autojump --- .gitmodules | 3 +++ bash_tools.sh | 5 ++++- bash_tools/autojump | 1 + bash_tools/fzf_file_seletor.sh | 1 - 4 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 .gitmodules create mode 160000 bash_tools/autojump diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..537478f --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "bash_tools/autojump"] + path = bash_tools/autojump + url = https://github.com/wting/autojump diff --git a/bash_tools.sh b/bash_tools.sh index 5768d0f..da35e12 100644 --- a/bash_tools.sh +++ b/bash_tools.sh @@ -73,6 +73,9 @@ fi # -A: get rid of . and .. # -t: Sort by time. Display the newest first -# alias ls=ls -At +alias ls=ls -At source $DOTFILE_DIR/bash_tools/fzf_file_seletor.sh + +# add autojump +source $DOTFILE_DIR/bash_tools/autojump/bin/autojump.sh diff --git a/bash_tools/autojump b/bash_tools/autojump new file mode 160000 index 0000000..06e082c --- /dev/null +++ b/bash_tools/autojump @@ -0,0 +1 @@ +Subproject commit 06e082c91805cb022900819b2e0881eeae780d58 diff --git a/bash_tools/fzf_file_seletor.sh b/bash_tools/fzf_file_seletor.sh index 28c6f4c..300d675 100755 --- a/bash_tools/fzf_file_seletor.sh +++ b/bash_tools/fzf_file_seletor.sh @@ -18,7 +18,6 @@ set_wallpaper \ # fzf only match folders fzf_command_list_dir=(\ -ls \ cd \ )