Explorar el Código

Tiny fix around mssh completion

Emmanuel Bouthenot hace 13 años
padre
commit
bffa9b5cfb
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  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