summaryrefslogtreecommitdiff
path: root/lib/functions.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/functions.zsh')
-rw-r--r--lib/functions.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/functions.zsh b/lib/functions.zsh
index 1623df2bd..bbdbea5cb 100644
--- a/lib/functions.zsh
+++ b/lib/functions.zsh
@@ -23,7 +23,7 @@ function open_command() {
darwin*) open_cmd="open" ;;
cygwin*) open_cmd="cygstart" ;;
linux*) open_cmd="xdg-open" ;;
- msys*) open_cmd="start" ;;
+ msys*) open_cmd="start \"\"" ;;
*) echo "Platform $OSTYPE not supported"
return 1
;;
@@ -33,7 +33,7 @@ function open_command() {
if [[ "$OSTYPE" == darwin* ]]; then
$open_cmd "$@" &>/dev/null
else
- nohup $open_cmd "$@" &>/dev/null
+ nohup ${(z)open_cmd} "$@" &>/dev/null
fi
}