summaryrefslogtreecommitdiffstatshomepage
path: root/tmux/.local/bin
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2023-03-09 20:52:13 -0600
committerToby Vincent <tobyv13@gmail.com>2023-03-09 20:52:13 -0600
commitaf83a45be390476b912c074e89c535f7159a9134 (patch)
tree1d6fc350f06e389d1496493325da4b4c86c8f36f /tmux/.local/bin
parentdbaadba4e453197929b29c039216ef8f712f7732 (diff)
fix(tmux): improve session naming
Diffstat (limited to 'tmux/.local/bin')
-rwxr-xr-xtmux/.local/bin/tmux-ssh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tmux/.local/bin/tmux-ssh b/tmux/.local/bin/tmux-ssh
index b1875e2..6aa5911 100755
--- a/tmux/.local/bin/tmux-ssh
+++ b/tmux/.local/bin/tmux-ssh
@@ -28,10 +28,10 @@ if [ -z "$1" ]; then
fi
if [ "$1" = "localhost" ] || [ "$1" = "$HOST" ]; then
- tmux detach -E 'tmux attach'
+ tmux detach -E 'tmux new -A'
else
if ! tmux -L ssh has-session -t "$1"; then
- tmux -L ssh new-session -ds "$1" ssh -t "$1" zsh -l -c tmux new -As "$USER"
+ tmux -L ssh new-session -ds "$1" ssh -t "$1" "zsh -l -c 'tmux new -A'"
fi
if [ -z "$TMUX" ]; then