浏览代码

Merge branch 'marking-master'

Fixes #4597
Marc Cornellà 9 年之前
父节点
当前提交
78af29e5ed
共有 1 个文件被更改,包括 7 次插入3 次删除
  1. 7 3
      lib/functions.zsh

+ 7 - 3
lib/functions.zsh

@@ -16,13 +16,17 @@ function take() {
 }
 
 function open_command() {
+  emulate -L zsh
+  setopt shwordsplit
+
   local open_cmd
 
   # define the open command
   case "$OSTYPE" in
-    darwin*)  open_cmd="open" ;;
-    cygwin*)  open_cmd="cygstart" ;;
-    linux*)   open_cmd="xdg-open" ;;
+    darwin*)  open_cmd='open' ;;
+    cygwin*)  open_cmd='cygstart' ;;
+    linux*)   open_cmd='xdg-open' ;;
+    msys*)    open_cmd='start ""' ;;
     *)        echo "Platform $OSTYPE not supported"
               return 1
               ;;