浏览代码

Update fasd.plugin.zsh (#6822)

If `EDITOR` variable contains arguments to an editor such as mine:
`export EDITOR=emacsclient -t -c --alternate-editor=''`
Then, the editor's arguments are passed on to `fasd`. To fix this, pass the EDITOR program in quotes.
Varun Patro 6 年之前
父节点
当前提交
6876d9c543
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/fasd/fasd.plugin.zsh

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

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