mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-06 02:51:32 +01:00
Utterly stupid to exit with error on invalid host. It executes actual ssh with
total parameters now.
This commit is contained in:
parent
5e24ed4da3
commit
c2d81f9a51
1 changed files with 3 additions and 3 deletions
|
|
@ -40,14 +40,14 @@ function ssh() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local param=$1
|
local param=$1
|
||||||
shift
|
|
||||||
local host=$ssh_hosts[$param]
|
local host=$ssh_hosts[$param]
|
||||||
|
|
||||||
if [ -z "$host" ]; then
|
if [ -z "$host" ]; then
|
||||||
echo INVALID HOST
|
$actual_ssh $*
|
||||||
return 1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
shift
|
||||||
|
|
||||||
$actual_ssh $(echo $ssh_hosts[$param]) $* # $() to circumvent ssh from b0rking if options are present in map
|
$actual_ssh $(echo $ssh_hosts[$param]) $* # $() to circumvent ssh from b0rking if options are present in map
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue