From 59824adb3a6390abba5559265a79db261dbd24a4 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Thu, 30 Mar 2023 10:24:19 -0400 Subject: [PATCH] much improved speed in fzf project switcher --- modules/common/shell/fzf.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/common/shell/fzf.nix b/modules/common/shell/fzf.nix index 9f21f47..1f9819b 100644 --- a/modules/common/shell/fzf.nix +++ b/modules/common/shell/fzf.nix @@ -13,9 +13,8 @@ fd \ --search-path $HOME/dev \ --type directory \ - --hidden \ - "^.git\$" \ - | xargs dirname \ + --exact-depth 2 \ + | sed 's/\\/$//' \ | fzf \ --delimiter '/' \ --with-nth 6.. \