diff --git a/zshrc b/zshrc index 5710435..3b9a154 100644 --- a/zshrc +++ b/zshrc @@ -55,8 +55,15 @@ if (( $+commands[direnv])); then eval "$(direnv hook zsh)" fi +# Use fzf +if (( $+commands[fzf] )); then + e?() { + $EDITOR $(fzf) + } +fi + # Use fd for fzf -if (( $+commands[fd] )); then +if (( $+commands[fd] && $+commands[fzf] )); then _fzf_compgen_path() { fd --hidden --follow --exclude ".git" . "$1" }