From 0fa96db0dace46cd53ad47a5e4d12a5353617b5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Tue, 12 Dec 2023 11:36:13 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20perf(fish):=20added=20min=20and?= =?UTF-8?q?=20max=20depth=20for=20the=20repos=20function?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/fish/functions/repos.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/fish/functions/repos.fish b/.config/fish/functions/repos.fish index f7e85ef2..d2c3e49a 100644 --- a/.config/fish/functions/repos.fish +++ b/.config/fish/functions/repos.fish @@ -1,6 +1,6 @@ function repos --description 'Open Git directories in ~/Repos with fzf in a new Kitty tab' set gfetch "gfetch -d churn contributors --no-color-palette --no-title" - set selected_dir (find ~/Repos -type d -exec test -e '{}/.git' ';' -print -prune | fzf --preview "$gfetch {} && eza --long --header --icons --all --color=always --group-directories-first --hyperlink {}") + set selected_dir (find ~/Repos -mindepth 2 -maxdepth 2 -type d -exec test -e '{}/.git' ';' -print -prune | fzf --preview "$gfetch {} && eza --long --header --icons --all --color=always --group-directories-first --hyperlink {}") if test -n "$selected_dir" set tab_title (basename "$selected_dir")