X-Git-Url: http://id.pley.net/dotfiles.git/blobdiff_plain/4ff2c1b8d4fca75078da7e36f7ec1421749b43cb..f8531f5dddb42827b6935c3a70561c9216e07e46:/zsh_aliases?ds=sidebyside diff --git a/zsh_aliases b/zsh_aliases index 1728fa3..4338eef 100644 --- a/zsh_aliases +++ b/zsh_aliases @@ -67,11 +67,11 @@ if [[ $( has pidof ) == 'no' ]]; then fi function ssh-forget() { - sed -i "" "/^$1,/d" ~/.ssh/known_hosts + sed -i "" "/^$1[, ]/d" ~/.ssh/known_hosts } function ssh-learn() { - sed -i "" "/^$1,/d" ~/.ssh/known_hosts + sed -i "" "/^$1[, ]/d" ~/.ssh/known_hosts ssh-keyscan -t rsa $1 >> ~/.ssh/known_hosts }