mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +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
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue