Skip to content

A script that allows a user to use arrow keys to select an item from a list

License

Notifications You must be signed in to change notification settings

the0neWhoKnocks/shell-menu-select

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

shell-menu-select

A script that allows a user to use arrow keys to select an item from a list. Sometimes using select can be a bit clunky because the user doesn't get any visual feedback about what they're selecting unless a confirmation message is displayed (which adds more overhead).


How to load

Typical (you have the script locally)

source ./get-choice.sh

Remote (you want the functionality, but don't want to clone or copy anything)

source <(wget -qO- https://raw.githubusercontent.com/the0neWhoKnocks/shell-menu-select/master/get-choice.sh)
# or
source <(curl -s https://raw.githubusercontent.com/the0neWhoKnocks/shell-menu-select/master/get-choice.sh)

How to use

All flags and an example are demonstrated via the --help command.

source ./get-choice.sh
getChoice -h

About

A script that allows a user to use arrow keys to select an item from a list

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages