From c2d81f9a51770114e6a16f8c857ef18d477e5216 Mon Sep 17 00:00:00 2001 From: Nilesh Govindrajan Date: Fri, 19 Apr 2013 21:32:14 +0530 Subject: [PATCH] Utterly stupid to exit with error on invalid host. It executes actual ssh with total parameters now. --- plugins/ssh/ssh.plugin.zsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/ssh/ssh.plugin.zsh b/plugins/ssh/ssh.plugin.zsh index 72474c566..b7f24d95e 100644 --- a/plugins/ssh/ssh.plugin.zsh +++ b/plugins/ssh/ssh.plugin.zsh @@ -40,14 +40,14 @@ function ssh() { fi local param=$1 - shift local host=$ssh_hosts[$param] if [ -z "$host" ]; then - echo INVALID HOST - return 1 + $actual_ssh $* fi + shift + $actual_ssh $(echo $ssh_hosts[$param]) $* # $() to circumvent ssh from b0rking if options are present in map }