From 5dcfff4819367dd2208ce093563ef59a9efeef74 Mon Sep 17 00:00:00 2001 From: Roey Darwish Dror Date: Fri, 2 Nov 2012 10:22:51 +0200 Subject: [PATCH] Added ssh-alias module Conflicts: runcoms/zpreztorc --- modules/ssh-alias/init.zsh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 modules/ssh-alias/init.zsh diff --git a/modules/ssh-alias/init.zsh b/modules/ssh-alias/init.zsh new file mode 100644 index 00000000..61b7bce0 --- /dev/null +++ b/modules/ssh-alias/init.zsh @@ -0,0 +1,4 @@ +local x +for x in $(grep 'Host ' ~/.ssh/config | awk '{ print $2 }'); do + alias $x="ssh $x" +done