From e855ef9a9db420592eb331fb5da7f4a407a6549b Mon Sep 17 00:00:00 2001 From: Daniel Lynn Date: Mon, 11 Apr 2022 17:11:10 -0500 Subject: [PATCH] Add FINDER envar --- zshenv | 1 + zshrc | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) 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