Browse Source

Tiny fix around mssh completion

Emmanuel Bouthenot 13 years ago
parent
commit
bffa9b5cfb
1 changed files with 4 additions and 2 deletions
  1. 4 2
      .zsh.d/config.d/alias.zsh

+ 4 - 2
.zsh.d/config.d/alias.zsh

@@ -103,6 +103,8 @@ fi
 #
 # Mssh stuff
 #
-hosts=($(grep '^Host [^*]' ~/.ssh/config | sed 's/Host //'))
-compctl -k hosts mssh
+if [ -f ~/.ssh/config ]; then
+    hosts=($(grep '^Host [^*]' ~/.ssh/config | sed 's/Host //'))
+    compctl -k hosts mssh
+fi