add(fish): tmux_last

This commit is contained in:
Léana 江 2023-11-09 21:45:07 +01:00 committed by Léana 江
parent 4eb662e46c
commit 8ccf640808
4 changed files with 27 additions and 12 deletions

View file

@ -135,7 +135,7 @@ function tmux_sessionizer --description "create tmux sessions"
select-window -t $session_name:1 \;
end
# attach or switch
set -U TMUX_LAST (tmux display-message -p '#S')
if [ -z $TMUX ]
tmux attach-session -t $session_name
else