♻️ refactor(fish): repos function now creates a new session when inside of tmux instead of changing the name to the current one

This commit is contained in:
Sergio Laín 2024-07-31 18:36:27 +02:00
parent 978bcb889f
commit 685059322f
No known key found for this signature in database
GPG key ID: 8429B2EE312F8150

View file

@ -8,7 +8,7 @@ function repos --description 'Open Git directories in ~/Repos with fzf in a new
if type -q tmux
if set -q TMUX
set new_tab_cmd "tmux rename-session \"$tab_title\"; and cd $selected_dir; and $gfetch; and l"
set new_tab_cmd "tmux new-session -ds \"$tab_title\" -c \"$selected_dir\"; and tmux switch-client -t \"$tab_title\""
else
set new_tab_cmd "tmux new-session -s \"$tab_title\" -c \"$selected_dir\""
end