zshrc: remove git dirs from fre-jump so the frecency works properly
This commit is contained in:
parent
45f4f72eb7
commit
06fabea1e6
1 changed files with 1 additions and 4 deletions
5
.zshrc
5
.zshrc
|
@ -62,10 +62,7 @@ redraw-prompt() {
|
||||||
zle -N redraw-prompt
|
zle -N redraw-prompt
|
||||||
|
|
||||||
_jump() {
|
_jump() {
|
||||||
_dir=$((
|
_dir=$(fre --sorted | fzf-tmux --no-sort)
|
||||||
git rev-parse --show-toplevel 2>/dev/null | xargs -r fd --type d --hidden --follow --exclude .git .
|
|
||||||
fre --sorted
|
|
||||||
) | fzf-tmux)
|
|
||||||
[ -n "$_dir" ] && pushd $_dir >>/dev/null
|
[ -n "$_dir" ] && pushd $_dir >>/dev/null
|
||||||
zle && zle redraw-prompt
|
zle && zle redraw-prompt
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue