浏览代码

Add support for cygwin open in web-search plugin

Marc Cornellà 9 年之前
父节点
当前提交
c45885093f
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      plugins/web-search/web-search.plugin.zsh

+ 1 - 0
plugins/web-search/web-search.plugin.zsh

@@ -16,6 +16,7 @@ function web_search() {
   # define the open command
   case "$OSTYPE" in
     darwin*)  open_cmd="open" ;;
+    cygwin*)  open_cmd="cygstart" ;;
     linux*)   open_cmd="xdg-open" ;;
     *)        echo "Platform $OSTYPE not supported"
               return 1