♻️ 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:
parent
978bcb889f
commit
685059322f
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ function repos --description 'Open Git directories in ~/Repos with fzf in a new
|
||||||
|
|
||||||
if type -q tmux
|
if type -q tmux
|
||||||
if set -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
|
else
|
||||||
set new_tab_cmd "tmux new-session -s \"$tab_title\" -c \"$selected_dir\""
|
set new_tab_cmd "tmux new-session -s \"$tab_title\" -c \"$selected_dir\""
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue