fixes sessionizer

This commit is contained in:
Dennis Schoepf 2026-01-10 21:09:53 +01:00
parent 8ff5626cd8
commit 30bb8fea25

View file

@ -79,15 +79,15 @@
set -l tmux_runnning (pgrep tmux) set -l tmux_runnning (pgrep tmux)
if test -z $TMUX && -z @tmux_running if test -z $TMUX && -z @tmux_running
tmux new-session -s $selected_name -c $selected tmux new-session -s $session_name -c $selected
return 0 return 0
end end
if not tmux has-session -t=$selected_name 2> /dev/null if not tmux has-session -t=$selected_name 2> /dev/null
tmux new-session -ds $selected_name -c $selected tmux new-session -ds $session_name -c $selected
end end
tmux switch-client -t $selected_name tmux switch-client -t $session_name
''; '';
nn = /* fish */ '' nn = /* fish */ ''
# Require a title argument # Require a title argument