aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/.local/bin/start-tmux3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/.local/bin/start-tmux b/bin/.local/bin/start-tmux
index 4416b1e..7ff8106 100755
--- a/bin/.local/bin/start-tmux
+++ b/bin/.local/bin/start-tmux
@@ -1,4 +1,5 @@
#!/bin/sh
set -e
-tmux new-session -A -s "$USER"
+tmux new-session -A -s "$USER" -d
+exec tmux attach-session -t "$USER" || true