X-Git-Url: http://105106.c2e0p.group/dotfiles.git/blobdiff_plain/2ea666b3ad4c9f6a2e58c969385e8e391e325ae9..effa434c0dcd3b563142fae85db75ccfd0c9cfbf:/zsh_aliases 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 }