فهرست منبع

Tiny fix around mssh completion

Emmanuel Bouthenot 13 سال پیش
والد
کامیت
bffa9b5cfb
1فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  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