Adopt fzf

This commit is contained in:
Henrik Lissner 2019-11-26 17:00:28 -05:00
parent 51d09bcc19
commit 0a9584ecaf
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 10 additions and 0 deletions

View file

@ -7,6 +7,7 @@ if ! zgen saved; then
zgen load zsh-users/zsh-history-substring-search zgen load zsh-users/zsh-history-substring-search
zgen load zdharma/history-search-multi-word zgen load zdharma/history-search-multi-word
zgen load zsh-users/zsh-completions src zgen load zsh-users/zsh-completions src
zgen load junegunn/fzf shell
if [[ -z $SSH_CONNECTION ]]; then if [[ -z $SSH_CONNECTION ]]; then
zgen load zdharma/fast-syntax-highlighting zgen load zdharma/fast-syntax-highlighting
@ -42,6 +43,14 @@ function _cache {
source $cache || rm -f $cache source $cache || rm -f $cache
} }
# fd > find
if command -v fd >/dev/null; then
export FZF_DEFAULT_OPTS="--reverse"
export FZF_DEFAULT_COMMAND="fd . $HOME"
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
export FZF_ALT_C_COMMAND="fd -t d . $HOME"
fi
_cache fasd --init posix-alias zsh-{hook,{c,w}comp{,-install}} _cache fasd --init posix-alias zsh-{hook,{c,w}comp{,-install}}
_cache direnv hook zsh _cache direnv hook zsh

View file

@ -18,6 +18,7 @@ in
bat bat
exa exa
fd fd
fzf
tmux tmux
htop htop
tree tree