From 87fecb23f03a5833ac684412f5a0017c37754518 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Sun, 4 Aug 2024 13:25:17 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20config(fish):=20repos=20fu?= =?UTF-8?q?nction=20checks=20subdirectories=20only=20in=20a=20maxdepth=20o?= =?UTF-8?q?f=201?= 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 83ff456c..09e36af1 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 -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 {}") + set selected_dir (find ~/Repos -mindepth 1 -maxdepth 1 -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")