1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-04 19:50:08 +00:00
Commit graph

9 commits

Author SHA1 Message Date
Michael Morgan
27228d83fe fasd: update v alias to evaluate $EDITOR lazily (#7900)
For the `v` alias to work in its current state, the environment variable
EDITOR must already be defined by the time `source $ZSH/oh-my-zsh.sh`
happens. However, in the included zshrc template, EDITOR is set from
within the "User configuration" section, which begins immediately after
the above line. This means that, unless the user knows to move their
`export EDITOR` statements, EDITOR will be undefined when fasd.plugin.zsh
loads, and therefore the alias will have the value 'f -e ""', preventing
it from functioning.

With this change, `"$EDITOR"` will be evaluated each time the alias is
invoked, instead of just once when the alias is created. This allows for
EDITOR to be set from "User configuration" in the zshrc, and has the
additional flexibility of allowing a user to specify a different EDITOR
for a single session or invocation of the alias.
2019-06-01 20:40:04 +02:00
Marc Cornellà
69e637c355
fasd: use xdg-open in o alias back again
Fixes #6314
2018-09-03 17:13:18 +02:00
Cristian Măgherușan-Stanciu @magheru_san
e416990442 fasd: drop-in replace the autojump j alias (#3860) 2018-09-03 17:09:31 +02:00
Varun Patro
6876d9c543 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.
2018-05-14 16:00:04 +02:00
Alexander Berezovsky
9ad9ac69a6 Change vim command to $EDITOR for consistency (#5063) 2016-05-21 17:52:11 -07:00
Marc Cornellà
b760a10cb2 Use standard open command in fasd and lighthouse plugins 2015-08-05 01:18:42 +02:00
william
7f232f69fe Respect $ZSH_CACHE_DIR when creating fasd's cache 2015-06-02 14:43:38 -06:00
Lindolfo 'Lorn' Rodrigues
f28e16a158 Cache for fasd --init
Using cache technique for faster fasd --init as shown at:
 https://github.com/clvv/fasdi#install
2013-04-30 02:04:09 -03:00
Alexander Berezovsky
0f9fff8aec add fasd plugin 2012-05-23 16:54:02 -07:00