diff options
author | Florian Pritz <bluewind@xinu.at> | 2019-06-27 10:46:05 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2019-07-06 14:19:22 +0200 |
commit | f10a8b403109e140e2be0c2b4af9819feb29b5f6 (patch) | |
tree | 55955903d3071dedadce7f07290a8b6f50768f55 | |
parent | c095bba88a09367ce72ed84ca3fbcc8697f27399 (diff) | |
download | dotfiles-f10a8b403109e140e2be0c2b4af9819feb29b5f6.tar.gz dotfiles-f10a8b403109e140e2be0c2b4af9819feb29b5f6.tar.xz |
zshrc: Remove _dsa suffix from host names
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r-- | .zshrc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -690,7 +690,7 @@ compdef sshrc=ssh # complete ssh hostnames [[ -r ~/.ssh/known_hosts ]] && _ssh_hosts=(${${${${${${${(f)"$(<$HOME/.ssh/known_hosts)"}:#[\|]*}%%\ *}%%,*}%%:*}#\[}%\]}) || _ssh_hosts=() -[[ -r ~/.ssh/known_hosts_work ]] && _ssh_hosts+=(${${${${${${${(f)"$(sed -r 's#_(rsa|ed25519|ecdsa),#,#;' <$HOME/.ssh/known_hosts_work)"}:#[\|]*}%%\ *}%%,*}%%:*}#\[}%\]}) || true +[[ -r ~/.ssh/known_hosts_work ]] && _ssh_hosts+=(${${${${${${${(f)"$(sed -r 's#_(rsa|ed25519|ecdsa|dsa),#,#;' <$HOME/.ssh/known_hosts_work)"}:#[\|]*}%%\ *}%%,*}%%:*}#\[}%\]}) || true [[ -r ~/.ssh/config ]] && _ssh_config_hosts=($(sed -rn 's/host\s+(.+)/\1/ip' "$HOME/.ssh/config" | grep -v "\*" )) || _ssh_config_hosts=() hosts=( $HOST |