aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2025-11-28 13:57:12 -0500
committerEugene Triguba <hello@eugenetriguba.com>2025-11-28 13:57:12 -0500
commit9e239f4341f27cf485a712b1dcf24184afd6c4ed (patch)
tree3fd97040a63df86412cf78f4eca1ab7166e9217d /bin
parentFix deprecation warnings with brewfile install (diff)
downloaddotfiles-9e239f4341f27cf485a712b1dcf24184afd6c4ed.zip
Fix 'tmux open terminal failed: not a terminal' with start-tmux on macos
Diffstat (limited to 'bin')
-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