Handle more than 2 terminals

This commit is contained in:
Asocia 2021-05-04 14:35:02 +03:00
parent 5bc6a5976b
commit 0a17b34225

2
.zshrc
View File

@ -1,6 +1,6 @@
# Always start a tmux session when opening up terminal
if type tmux &> /dev/null; then
session_name=${YAKUAKE:-Konsole}
session_name=${TERMINAL_NAME:-Terminal}
#if not inside a tmux session, start a new session
if [[ $HOST == "ubuntu" && -z "$TMUX" ]]; then
(tmux -2 new-session -A -s $session_name || false)