Bash: Remove duplicate SSH autocomplete.

This commit is contained in:
Artem Sapegin
2012-11-28 12:41:42 +04:00
parent 67c61baec4
commit c1f4d1730e
2 changed files with 5 additions and 8 deletions

View File

@ -109,16 +109,10 @@ add-ssh-host() {
tput bold; ssh -o PasswordAuthentication=no $identifier true && { tput setaf 2; echo "SSH key added."; } || { tput setaf 1; echo "Failure"; }; tput sgr0
_ssh_load_autocomplete
_ssh_reload_autocomplete
fi
}
# Adds ~/.ssh/config to the ssh autocomplete
_ssh_load_autocomplete() {
complete -W "$(awk '/^\s*Host\s*/ { sub(/^\s*Host /, ""); print; }' ~/.ssh/config)" ssh
}
_ssh_load_autocomplete
# Upload current directory to special directory on my hosting
function yay() {
server="locum"