summaryrefslogtreecommitdiff
path: root/.local/bin
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/sshchoose4
1 files 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"