1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-25 15:20:08 +00:00

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.
This commit is contained in:
Varun Patro 2018-05-14 19:30:04 +05:30 committed by Marc Cornellà
parent 0608bb768f
commit 6876d9c543

View file

@ -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