mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-07 07:09:15 +00:00
add(fish): tmux_last
This commit is contained in:
parent
4eb662e46c
commit
8ccf640808
4 changed files with 27 additions and 12 deletions
|
|
@ -11,8 +11,8 @@ function tmux_attach --description "attach to existing tmux sessions"
|
|||
return 0
|
||||
end
|
||||
|
||||
# attach or switch
|
||||
if [ -z "$TMUX" ]
|
||||
set -U TMUX_LAST (tmux display-message -p '#S')
|
||||
if [ -z $TMUX ]
|
||||
tmux attach-session -t $selected
|
||||
else
|
||||
tmux switch-client -t $selected
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue