diff options
author | tsxv478 <atvx717@infraredcombat.xyz> | 2025-01-18 00:29:18 +0300 |
---|---|---|
committer | tsxv478 <atvx717@infraredcombat.xyz> | 2025-01-18 00:29:18 +0300 |
commit | e615c0daad00a618d96ff18e9fd6578c117c0665 (patch) | |
tree | ed6cec6df512d72419b7b9a36bbe02be38628fc9 | |
parent | 0a093d73222fe72a183fc7b10a6b37f191be2e69 (diff) |
sshmenu: check if dmenu is installed
-rwxr-xr-x | sshmenu | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1,6 +1,6 @@ #!/bin/sh -if [ $DISPLAY ]; then +if [ $DISPLAY ] && command -v dmenu >/dev/null; then host=$(grep "^Host" $HOME/.ssh/config | cut -d ' ' -f 2 | dmenu -i -c -l 10 -p "SSH to:") [ "$host" ] || exit 0 |