mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-21 21:30:09 +00:00
Fix open_command nohup call
There a syntax error if $cmd_var contains more than one word, so we drop the current way to prepend nohup and use a simpler if-else form.
This commit is contained in:
parent
ef031dfe8f
commit
fea74b4b34
1 changed files with 5 additions and 3 deletions
|
@ -29,9 +29,11 @@ function open_command() {
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# don't use nohup on OSX
|
# don't use nohup on OSX
|
||||||
[[ "$OSTYPE" != darwin* ]] && open_cmd="nohup $open_cmd"
|
if [[ "$OSTYPE" == darwin* ]]; then
|
||||||
|
|
||||||
$open_cmd "$@" &>/dev/null
|
$open_cmd "$@" &>/dev/null
|
||||||
|
else
|
||||||
|
nohup $open_cmd "$@" &>/dev/null
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue