summaryrefslogtreecommitdiff
path: root/.zshrc
diff options
context:
space:
mode:
authorAndrew Guschin <guschin@altlinux.org>2024-02-14 16:27:57 +0400
committerAndrew Guschin <guschin@altlinux.org>2024-02-14 16:27:57 +0400
commitd7c73ec2ec477da03deaf973f0eafbfa0e0b3f73 (patch)
tree284807858da228e4a4a763cd7be8425b72bce6c8 /.zshrc
parentee050df50478a90d518db3e76d6b22b3f9b56378 (diff)
add tmux autostart to zshrc
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/.zshrc b/.zshrc
index 74ea9dd..1464955 100644
--- a/.zshrc
+++ b/.zshrc
@@ -64,3 +64,7 @@ set_prompt() {
set_prompt
source $HOME/.zprofile
+
+if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then
+ exec tmux
+fi