new script: choose

This commit is contained in:
Alexander Gehrke 2021-01-11 13:27:33 +01:00
parent d37ff629ab
commit 5b3d57ecae

11
misc/choose Executable file
View file

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