2026-02-02 22:20:54 -07:00
2026-02-02 22:20:54 -07:00
2026-02-02 22:20:54 -07:00
2026-02-02 22:03:20 -07:00
2026-02-02 22:03:20 -07:00
2026-02-02 22:20:54 -07:00

Select Option

Creates a tui selector based off of stdin. printf '1\n2\n3' | select_option will create a selector for a, b, c. Navigate with F-keys, j/k, or arrow keys, then press enter on your selection. This will print out the selected option to stdout.

Usecases

Selecting a drive from the system

lsblk -lno type,name | grep part | awk '{ print "/dev/" $2 }' | select_option
Description
Languages
Rust 96.3%
Shell 3.7%