about summary refs log tree commit diff
path: root/home/zsh/tmux.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'home/zsh/tmux.zsh')
-rw-r--r--home/zsh/tmux.zsh3
1 files changed, 3 insertions, 0 deletions
diff --git a/home/zsh/tmux.zsh b/home/zsh/tmux.zsh
new file mode 100644
index 0000000..4120512
--- /dev/null
+++ b/home/zsh/tmux.zsh
@@ -0,0 +1,3 @@
+if command -v tmux &> /dev/null && [ -z "$TMUX" ]; then
+  tmux attach -t default || tmux new -s default
+fi