comparison zshrc @ 99:a081e7a3977d

Add support for custom completions to zshrc. Add a completion function to match all ssh keys in ~/.ssh when using ssh-add.
author Dirk Olmes <dirk@xanthippe.ping.de>
date Tue, 18 Oct 2016 04:25:48 +0200
parents 5cc3c67c9d3f
children b3ffe2fba3ac
comparison
equal deleted inserted replaced
98:ab0d075236e0 99:a081e7a3977d
20 if [ "`alias | grep 'lsa='`" != "" ]; then 20 if [ "`alias | grep 'lsa='`" != "" ]; then
21 unalias lsa 21 unalias lsa
22 fi 22 fi
23 23
24 # enable zsh's fancy autocomplete 24 # enable zsh's fancy autocomplete
25 fpath=(~/.zsh-env/completion $fpath)
25 autoload -U compinit 26 autoload -U compinit
26 compinit 27 compinit
27 28
28 # custom functions/aliases that should work on all platforms 29 # custom functions/aliases that should work on all platforms
29 cd() { builtin cd "$@"; print -D $PWD; } 30 cd() { builtin cd "$@"; print -D $PWD; }