zsh: Add hashed directories for GHQ_ROOT and GOPATH
Alan Pearce alan@alanpearce.uk
Tue, 25 Apr 2017 15:31:26 +0200
1 files changed, 4 insertions(+), 0 deletions(-)
jump to
M zsh/.config/zsh/.zshrc → zsh/.config/zsh/.zshrc
@@ -112,6 +112,10 @@ ds () { du -hd1 $1 | sort -h } +# returns the first ghq root, whereas $GHQ_ROOT returns all +hash -d p=$(ghq root) +hash -d go=${GOPATH:-$HOME/go} + zle -C hist-complete complete-word _generic zstyle ':completion:hist-complete:*' completer _history bindkey '\e ' hist-complete