zshrc: remove git dirs from fre-jump so the frecency works properly

This commit is contained in:
Daniel Lundin 2022-07-27 12:24:22 +02:00
parent 45f4f72eb7
commit 06fabea1e6

5
.zshrc
View file

@ -62,10 +62,7 @@ redraw-prompt() {
zle -N redraw-prompt
_jump() {
_dir=$((
git rev-parse --show-toplevel 2>/dev/null | xargs -r fd --type d --hidden --follow --exclude .git .
fre --sorted
) | fzf-tmux)
_dir=$(fre --sorted | fzf-tmux --no-sort)
[ -n "$_dir" ] && pushd $_dir >>/dev/null
zle && zle redraw-prompt
}