diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2024-01-13 19:19:05 -0500 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2024-01-13 19:19:05 -0500 |
commit | bc38e4fb8e87f86226477172bc4c10190bf09cc4 (patch) | |
tree | 1b3ac488f99583e62ca20a05cae05accbb0d72a5 /.local/bin/sshchoose | |
parent | 719c3734ff2d247b386e398b4cf98aa62c6f6cc0 (diff) |
Fix sshchoose session naming
Diffstat (limited to '.local/bin/sshchoose')
-rwxr-xr-x | .local/bin/sshchoose | 4 |
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" |