fix(fish): tmux_last using variable is flaky

This commit is contained in:
Léana 江 2024-01-28 14:52:19 +01:00 committed by Léana 江
parent 776189f5a4
commit b713c1bbdf
4 changed files with 20 additions and 5 deletions

View file

@ -6,7 +6,11 @@ if ! tmux has-session -t="home" 2> /dev/null
select-window -t "home":1
end
set -U TMUX_LAST (tmux display-message -p '#S')
# echo "---home---" >> /tmp/TMUX_DEBUG
# echo (cat /tmp/TMUX_LAST) >> /tmp/TMUX_DEBUG
echo (tmux display-message -p '#S') > /tmp/TMUX_LAST
# echo (cat /tmp/TMUX_LAST) >> /tmp/TMUX_DEBUG
if [ -z $TMUX ]
tmux attach-session -t "home"
else