fixed something..
This commit is contained in:
parent
9e1bb67ef2
commit
2e03cfe754
1 changed files with 5 additions and 1 deletions
|
@ -520,11 +520,15 @@ fi
|
|||
|
||||
# Tmux session manager
|
||||
if command_exists tmux; then
|
||||
if [ -z "$TMUX" ]; then
|
||||
sleep 0.01
|
||||
if [ -n "$TMUX" ]; then
|
||||
sleep 0.01
|
||||
# Attach to existing session if any, otherwise create one named 'main'
|
||||
if tmux ls &>/dev/null; then
|
||||
sleep 0.01
|
||||
tmux attach-session
|
||||
else
|
||||
sleep 0.01
|
||||
tmux new-session
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue