diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..1c8076b --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "_z"] + path = _z + url = https://github.com/rupa/z.git diff --git a/_z b/_z new file mode 160000 index 0000000..771c584 --- /dev/null +++ b/_z @@ -0,0 +1 @@ +Subproject commit 771c58409b5057d2bf621ac29604a573d6de0d77 diff --git a/_zshrc b/_zshrc index 0ebfe87..9d885fa 100644 --- a/_zshrc +++ b/_zshrc @@ -77,3 +77,10 @@ bindkey '^R' history-incremental-search-backward fpath=(${HOME}/.zsh/completions $fpath) [ -s "$HOME/.scm_breeze/scm_breeze.sh" ] && source "$HOME/.scm_breeze/scm_breeze.sh" + +# z +export _Z_DATA="$HOME/.zdata" +. $HOME/.z/z.sh + function precmd () { + _z --add "$(pwd -P)" + }