mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-26 21:51:05 +01:00
Merge pull request #4534 from mcornella/fix-open_command-nohup-tmux
Drop the use of nohup on OSX for tmux compatibility
This commit is contained in:
commit
d2e1c71bfb
1 changed files with 12 additions and 10 deletions
|
@ -28,7 +28,10 @@ function open_command() {
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
nohup $open_cmd "$@" &>/dev/null
|
# don't use nohup on OSX
|
||||||
|
[[ "$OSTYPE" != darwin* ]] && open_cmd="nohup $open_cmd"
|
||||||
|
|
||||||
|
$open_cmd "$@" &>/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -220,4 +223,3 @@ function omz_urldecode {
|
||||||
|
|
||||||
echo -E "$decoded"
|
echo -E "$decoded"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue