From bc38e4fb8e87f86226477172bc4c10190bf09cc4 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Sat, 13 Jan 2024 19:19:05 -0500 Subject: Fix sshchoose session naming --- .local/bin/sshchoose | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.local/bin/sshchoose b/.local/bin/sshchoose index 378ab73..397d935 100755 --- a/.local/bin/sshchoose +++ b/.local/bin/sshchoose @@ -3,8 +3,8 @@ # user@host are stored in pass under the ssh/ directory available="$(pass ls ssh/ | sed '/^ssh$/d;s/.*─\s//' | sed 's/\x1b\[[0-9;]*m//g')" -choice="$(echo "$available" | dmenu -p " Choose session")" +choice="$(echo "$available" | dmenu -p " Choose session" | sed 's/\s//g')" addr="$(pass "ssh/$choice")" -dropdowntoggle "ssh-$choice" "tmux-ssh" "choice" "$addr" +dropdowntoggle "ssh-$choice" "tmux-ssh" "$choice" "$addr" -- cgit v1.2.3