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
|
fnm env --use-on-cd --shell fish | source
|
||||||
|
|
||||||
# Auto start tmux
|
# Auto start tmux
|
||||||
if status --is-interactive; and not set -q TMUX
|
if status is-interactive; and not set -q TMUX
|
||||||
tmux attach-session -d -t main || tmux new-session -s main
|
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
|
end
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue