mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 22:59:15 +00:00
fix(fish): tmux_last using variable is flaky
This commit is contained in:
parent
776189f5a4
commit
b713c1bbdf
4 changed files with 20 additions and 5 deletions
|
|
@ -134,7 +134,11 @@ if ! tmux has -t=$session_name 2> /dev/null
|
|||
select-window -t $session_name:1 \;
|
||||
end
|
||||
|
||||
set -Ux TMUX_LAST (tmux display-message -p '#S')
|
||||
# echo "---sess---" >> /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 $session_name
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue