all repos — nixfiles @ 183364854a7c61eb2d46c5536926b707ec2cf2c1

System and user configuration, managed by nix and home-manager

zsh: Add hashed directories for GHQ_ROOT and GOPATH

Alan Pearce
commit

183364854a7c61eb2d46c5536926b707ec2cf2c1

parent

c25428de28d56b9d0c7c271380d6cfc1cc84fcf8

1 file changed, 4 insertions(+), 0 deletions(-)

jump to
M zsh/.config/zsh/.zshrczsh/.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