浏览代码

Add completion for mssh

Emmanuel Bouthenot 14 年之前
父节点
当前提交
7542519178
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      .zsh.d/config.d/alias.zsh

+ 6 - 0
.zsh.d/config.d/alias.zsh

@@ -100,3 +100,9 @@ if [ -z "$GIT_PAGER" ]; then
     done
 fi
 
+#
+# Mssh stuff
+#
+hosts=($(grep '^Host [^*]' ~/.ssh/config | sed 's/Host //'))
+compctl -k hosts mssh
+