diff --git a/zshenv b/zshenv index 6344ba6..6e26c34 100644 --- a/zshenv +++ b/zshenv @@ -1,3 +1,4 @@ +export FINDER="sk" export EDITOR="hx" export VISUAL="hx" export GPG_TTY=$(tty) diff --git a/zshrc b/zshrc index 3b9a154..f5e68d2 100644 --- a/zshrc +++ b/zshrc @@ -55,10 +55,10 @@ if (( $+commands[direnv])); then eval "$(direnv hook zsh)" fi -# Use fzf -if (( $+commands[fzf] )); then +# Use $FINDER and $EDITOR +if (( $+commands[$FINDER] )); then e?() { - $EDITOR $(fzf) + $EDITOR $($FINDER) } fi