mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
ref: fish
This commit is contained in:
parent
9de8620910
commit
02123f2554
2 changed files with 8 additions and 8 deletions
|
|
@ -126,7 +126,6 @@ function tmux_sessionizer --description "create tmux sessions"
|
|||
end
|
||||
|
||||
set session_name (echo $selected | tr . _)
|
||||
set -U TMUX_LAST (tmux display-message -p '#S')
|
||||
|
||||
# create session if doesn't exist
|
||||
if ! tmux has -t=$session_name 2> /dev/null
|
||||
|
|
@ -137,6 +136,7 @@ function tmux_sessionizer --description "create tmux sessions"
|
|||
select-window -t $session_name:1 \;
|
||||
end
|
||||
|
||||
set -U TMUX_LAST (tmux display-message -p '#S')
|
||||
if [ -z $TMUX ]
|
||||
tmux attach-session -t $session_name
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue