浏览代码

Use standard open command in fasd and lighthouse plugins

Marc Cornellà 8 年之前
父节点
当前提交
b760a10cb2
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 2 2
      plugins/fasd/fasd.plugin.zsh
  2. 1 1
      plugins/lighthouse/lighthouse.plugin.zsh

+ 2 - 2
plugins/fasd/fasd.plugin.zsh

@@ -5,7 +5,7 @@ if [ $commands[fasd] ]; then # check if fasd is installed
   fi
   source "$fasd_cache"
   unset fasd_cache
+
   alias v='f -e vim'
-  alias o='a -e open'
+  alias o='a -e open_command'
 fi
-

+ 1 - 1
plugins/lighthouse/lighthouse.plugin.zsh

@@ -9,7 +9,7 @@ open_lighthouse_ticket () {
   else
     lighthouse_url=$(cat .lighthouse-url);
     echo "Opening ticket #$1";
-    `open $lighthouse_url/tickets/$1`;
+    open_command "$lighthouse_url/tickets/$1";
   fi
 }