Skip to content

Commit b7dfbe1

Browse files
committed
Fix fzf/eza flags and conditions
1 parent 3f5bb0f commit b7dfbe1

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

home/zshrc

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,8 @@ if _has fzf; then
9494
FZF_ALT_C_COMMAND='fd --type d --color never'
9595
fi
9696

97-
# Display source tree and file preview for CTRL-T and ALT-C.
98-
if _has tree || _has eza; then
99-
# Show subdir tree for directories.
100-
FZF_ALT_C_OPTS="--preview '(eza --tree --icons --level 3 --color=always --group-directories-first {} || tree -C {}) | head -200'"
101-
fi
97+
# Display source tree and file preview for ALT-C.
98+
FZF_ALT_C_OPTS="--preview '(eza --tree --icons --level 3 --color=always --group-directories-first {} || tree -C {}) | head -200'"
10299

103100
# Bind alt-j/k/d/u to moving the preview window for fzf.
104101
FZF_DEFAULT_OPTS="--bind alt-k:preview-up,alt-j:preview-down,alt-u:preview-page-up,alt-d:preview-page-down"
@@ -110,7 +107,7 @@ if _has fzf; then
110107

111108
# Some basic fzf-tab configs.
112109
plugins+=(fzf-tab)
113-
zstyle ':fzf-tab:complete:cd:*' fzf-preview '(eza --tree --color=always $realpath || tree -C $realpath) 2> /dev/null'
110+
zstyle ':fzf-tab:complete:cd:*' fzf-preview '(eza --tree --icons --color=always $realpath || tree -C $realpath) 2> /dev/null'
114111
zstyle ':completion:*:descriptions' format '[%d]'
115112
zstyle ':fzf-tab:*' switch-group ',' '.'
116113
fi

0 commit comments

Comments
 (0)