diff options
author | Toby Vincent <tobyv@tobyvin.dev> | 2023-10-29 20:39:00 -0500 |
---|---|---|
committer | Toby Vincent <tobyv@tobyvin.dev> | 2023-10-29 20:39:00 -0500 |
commit | 3e25c56d62b1364fa5e8b2ae17bf208d90fb2176 (patch) | |
tree | e703a90db97fc1e5d8d09f203cdd868b054721e9 /tmux/.local/bin/tmux-sshr | |
parent | 4ac99784b7078430392e56139648d926b2286f61 (diff) |
fix(tmux): update tmux-sshr for new sshr
Diffstat (limited to 'tmux/.local/bin/tmux-sshr')
-rwxr-xr-x | tmux/.local/bin/tmux-sshr | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tmux/.local/bin/tmux-sshr b/tmux/.local/bin/tmux-sshr index 11186ff..1f0c566 100755 --- a/tmux/.local/bin/tmux-sshr +++ b/tmux/.local/bin/tmux-sshr @@ -8,10 +8,8 @@ if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then fi if [ "$#" -eq 0 ]; then - ATTACHED=$(tmux display -p '#{?#{m:*ssh,#{socket_path}},#S,#{host}}' 2>/dev/null) - set -- "$( - sshr --all --exclude="$ATTACHED" | + sshr --all --exclude-attached | fzf-tmux -p20%,20% -- --print-query --tac | tail -1 )" |