mirror of
https://github.com/sahinakkaya/dotfiles.git
synced 2024-12-23 07:39:36 +01:00
Handle more than 2 terminals
This commit is contained in:
parent
5bc6a5976b
commit
0a17b34225
2
.zshrc
2
.zshrc
@ -1,6 +1,6 @@
|
|||||||
# Always start a tmux session when opening up terminal
|
# Always start a tmux session when opening up terminal
|
||||||
if type tmux &> /dev/null; then
|
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 not inside a tmux session, start a new session
|
||||||
if [[ $HOST == "ubuntu" && -z "$TMUX" ]]; then
|
if [[ $HOST == "ubuntu" && -z "$TMUX" ]]; then
|
||||||
(tmux -2 new-session -A -s $session_name || false)
|
(tmux -2 new-session -A -s $session_name || false)
|
||||||
|
Loading…
Reference in New Issue
Block a user