scripts/misc/choose

12 lines
159 B
Plaintext
Raw Normal View History

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