From e2bf35be17ebb1a03b17a738bf75fffdc67b065d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Mon, 29 Jul 2024 00:47:56 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(fish):=20check=20if=20zellij?= =?UTF-8?q?=20exists=20on=20the=20repos=20function?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/fish/functions/repos.fish | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.config/fish/functions/repos.fish b/.config/fish/functions/repos.fish index d9da6637..6e9203bb 100644 --- a/.config/fish/functions/repos.fish +++ b/.config/fish/functions/repos.fish @@ -6,8 +6,10 @@ function repos --description 'Open Git directories in ~/Repos with fzf in a new set tab_title (basename "$selected_dir") set new_tab_cmd = "" - if zellij ls | grep --quiet current - set new_tab_cmd "zellij action rename-tab \"$tab_title\"; and cd $selected_dir; and $gfetch; and l" + if type -q zellij + if zellij ls | grep --quiet current + set new_tab_cmd "zellij action rename-tab \"$tab_title\"; and cd $selected_dir; and $gfetch; and l" + end else if type -q kitty set new_tab_cmd "kitty @ set-tab-title \"$tab_title\"; and cd $selected_dir; and $gfetch; and l" else