]> 105106.c2e0p.group Git - dotfiles.git/blobdiff - zsh_aliases
Add homebrew path to zsh_login
[dotfiles.git] / zsh_aliases
index 1728fa30dc36d3856a8acf9fae7633aa624b4a1b..4338eefc23cd7086b3c5f7109f9271416e008f95 100644 (file)
@@ -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
 }