summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsshmenu2
1 files changed, 1 insertions, 1 deletions
diff --git a/sshmenu b/sshmenu
index 8bec492..115a111 100755
--- a/sshmenu
+++ b/sshmenu
@@ -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