xscreensaver-companion and a small fix to dmenu_ssh
This commit is contained in:
parent
09631ca385
commit
6bc06170d5
2 changed files with 19 additions and 1 deletions
|
@ -5,7 +5,6 @@ cmd="$1"
|
|||
shift
|
||||
get_hosts() {
|
||||
awk -F",| " '{print $1}' "${HOME}/.ssh/known_hosts"
|
||||
awk '$1 == "Host" {print $2}' "${HOME}/.ssh/config"
|
||||
}
|
||||
result=$(get_hosts | sort -uV | dmenu -p ssh ${1+"$@"}) || exit 1
|
||||
exec $cmd $result
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue