Add zsh completion
This commit is contained in:
parent
8d0e09731d
commit
a8dc0651f3
|
@ -1,3 +1,5 @@
|
|||
autoload -Uz compinit && compinit
|
||||
|
||||
# Add tab completion for SSH hostnames based on ~/.ssh/config, ignoring wildcards
|
||||
[ -e "$HOME/.ssh/config" ] && complete -o "default" -o "nospace" -W "$(grep "^Host" ~/.ssh/config | grep -v "[?*]" | cut -d " " -f2)" scp sftp ssh
|
||||
|
||||
|
|
Loading…
Reference in a new issue