summaryrefslogtreecommitdiff
path: root/lib/functions.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/functions.zsh')
-rw-r--r--lib/functions.zsh8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/functions.zsh b/lib/functions.zsh
index 8ef3420bb..ec6f37214 100644
--- a/lib/functions.zsh
+++ b/lib/functions.zsh
@@ -29,9 +29,11 @@ function open_command() {
esac
# don't use nohup on OSX
- [[ "$OSTYPE" != darwin* ]] && open_cmd="nohup $open_cmd"
-
- $open_cmd "$@" &>/dev/null
+ if [[ "$OSTYPE" == darwin* ]]; then
+ $open_cmd "$@" &>/dev/null
+ else
+ nohup $open_cmd "$@" &>/dev/null
+ fi
}
#