fixes fixes
This commit is contained in:
parent
4f1d119079
commit
45b61d85c2
1 changed files with 8 additions and 2 deletions
|
|
@ -229,8 +229,14 @@
|
|||
fnm env --use-on-cd --shell fish | source
|
||||
|
||||
# Auto start tmux
|
||||
if status --is-interactive; and not set -q TMUX
|
||||
tmux attach-session -d -t main || tmux new-session -s main
|
||||
if status is-interactive; and not set -q TMUX
|
||||
if tmux list-sessions >/dev/null 2>&1
|
||||
# Attach to the first available session
|
||||
tmux attach-session
|
||||
else
|
||||
# Create a new session
|
||||
tmux new-session -t default
|
||||
end
|
||||
end
|
||||
'';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue