scripts/misc/choose
2021-01-11 13:27:33 +01:00

12 lines
159 B
Bash
Executable file

#!/bin/zsh
zparseopts -D -E x=xorg -xorg=xorg
chosen="${@[RANDOM % $# + 1]}"
if [[ $xorg ]]; then
zenity --info --text=$chosen
else
echo $chosen
fi