From cfd82b81c37c670d361acfc0693eedf1b53516e0 Mon Sep 17 00:00:00 2001 From: Bartek Stalewski Date: Fri, 12 Mar 2021 00:54:09 +0100 Subject: [PATCH] wd for quick directory navigation --- .gitmodules | 3 +++ zsh/.zshrc | 4 ++++ zsh/modules/wd | 1 + 3 files changed, 8 insertions(+) create mode 160000 zsh/modules/wd diff --git a/.gitmodules b/.gitmodules index 14c7fd0..4272994 100644 --- a/.gitmodules +++ b/.gitmodules @@ -4,3 +4,6 @@ [submodule "zsh/modules/zsh-syntax-highlighting"] path = zsh/modules/zsh-syntax-highlighting url = https://github.com/zsh-users/zsh-syntax-highlighting.git +[submodule "zsh/modules/wd"] + path = zsh/modules/wd + url = https://github.com/mfaerevaag/wd.git diff --git a/zsh/.zshrc b/zsh/.zshrc index e609d5f..a1952e2 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -32,6 +32,10 @@ fi # plugins source $ZDOTDIR/modules/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh +export WD_CONFIG=$XDG_CONFIG_HOME/wd_list +wd () { + . $ZDOTDIR/modules/wd/wd.sh +} # theme source $ZDOTDIR/p10k.zsh diff --git a/zsh/modules/wd b/zsh/modules/wd new file mode 160000 index 0000000..38afa73 --- /dev/null +++ b/zsh/modules/wd @@ -0,0 +1 @@ +Subproject commit 38afa73ca85a557aef89438ad9fd60b5b41cdbc7