mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-03 04:20:01 +02:00
Merge a899e855ec into 22632aac7c
This commit is contained in:
commit
91c87a6f2f
1 changed files with 9 additions and 1 deletions
|
|
@ -17,6 +17,7 @@ function take() {
|
||||||
|
|
||||||
function open_command() {
|
function open_command() {
|
||||||
local open_cmd
|
local open_cmd
|
||||||
|
local nohup
|
||||||
|
|
||||||
# define the open command
|
# define the open command
|
||||||
case "$OSTYPE" in
|
case "$OSTYPE" in
|
||||||
|
|
@ -28,7 +29,14 @@ function open_command() {
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
nohup $open_cmd "$@" &>/dev/null
|
# Use nohup command
|
||||||
|
if [ ${TMUX:-NOT_USE_TMUX} = "NOT_USE_TMUX" ]; then
|
||||||
|
nohup="nohup"
|
||||||
|
else
|
||||||
|
nohup=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
$nohup $open_cmd "$@" &>/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue