#!/bin/sh commandList="tea git hcloud" if ! command -v wofi >/dev/null 2>&1; then echo "wofi is not installed" exit 1 fi selection=$(echo "$commandList" | wofi --prompt "Cheat Sheet" --dmenu) [ -z "$selection" ] && echo "nothing selected" exit 1