From 06fabea1e69eb44393e2e3031891e119af38a835 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Wed, 27 Jul 2022 12:24:22 +0200 Subject: [PATCH] zshrc: remove git dirs from fre-jump so the frecency works properly --- .zshrc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.zshrc b/.zshrc index 9196c17..8a4dd01 100644 --- a/.zshrc +++ b/.zshrc @@ -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 }