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