diff options
author | Toby Vincent <tobyv13@gmail.com> | 2023-03-09 20:52:13 -0600 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2023-03-09 20:52:13 -0600 |
commit | af83a45be390476b912c074e89c535f7159a9134 (patch) | |
tree | 1d6fc350f06e389d1496493325da4b4c86c8f36f /tmux/.local | |
parent | dbaadba4e453197929b29c039216ef8f712f7732 (diff) |
fix(tmux): improve session naming
Diffstat (limited to 'tmux/.local')
-rwxr-xr-x | tmux/.local/bin/tmux-ssh | 4 |
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 |