blob: 378ab7396a86f4ffd4618d80af605906b5acde9d (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/sh
# 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")"
addr="$(pass "ssh/$choice")"
dropdowntoggle "ssh-$choice" "tmux-ssh" "choice" "$addr"
|