Hide error about nested tmux sessions
This commit is contained in:
parent
b36ca8086e
commit
13c83fb8b4
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@
|
||||||
tmux new-session -d -c "$selected_path" -s "$session_name"
|
tmux new-session -d -c "$selected_path" -s "$session_name"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
tmux switch-client -t "$session_name" || tmux attach-session -t "$session_name"
|
tmux switch-client -t "$session_name" 2>/dev/null || tmux attach-session -t "$session_name"
|
||||||
}
|
}
|
||||||
|
|
||||||
main "$@"
|
main "$@"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue