Add FINDER envar

This commit is contained in:
Daniel Lynn 2022-04-11 17:11:10 -05:00
parent df0ef42f72
commit e855ef9a9d
Signed by: daniel
GPG Key ID: 28496A140E180A9D
2 changed files with 4 additions and 3 deletions

1
zshenv
View File

@ -1,3 +1,4 @@
export FINDER="sk"
export EDITOR="hx" export EDITOR="hx"
export VISUAL="hx" export VISUAL="hx"
export GPG_TTY=$(tty) export GPG_TTY=$(tty)

6
zshrc
View File

@ -55,10 +55,10 @@ if (( $+commands[direnv])); then
eval "$(direnv hook zsh)" eval "$(direnv hook zsh)"
fi fi
# Use fzf # Use $FINDER and $EDITOR
if (( $+commands[fzf] )); then if (( $+commands[$FINDER] )); then
e?() { e?() {
$EDITOR $(fzf) $EDITOR $($FINDER)
} }
fi fi