🐛 fix(fish): check if zellij exists on the repos function

This commit is contained in:
Sergio Laín 2024-07-29 00:47:56 +02:00
parent 8e63e29833
commit e2bf35be17
No known key found for this signature in database
GPG key ID: 8429B2EE312F8150

View file

@ -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 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