Separate list from command call for readability
This commit is contained in:
parent
93d0630fb0
commit
b388f73f7c
@ -1,5 +1,6 @@
|
|||||||
# Pick a preconfigured theme
|
# Pick a preconfigured theme
|
||||||
THEME=$(gum choose "Tokyo Night" "Catppuccin" "Everforest" "Gruvbox" "Nord" "Rose Pine" --header "Choose your theme" --height 8 | tr '[:upper:]' '[:lower:]' | sed 's/ /-/g')
|
THEME_NAMES=("Tokyo Night" "Catppuccin" "Everforest" "Gruvbox" "Nord" "Rose Pine")
|
||||||
|
THEME=$(gum choose "${THEME_NAMES[@]}" --header "Choose your theme" --height 8 | tr '[:upper:]' '[:lower:]' | sed 's/ /-/g')
|
||||||
|
|
||||||
[ ! -n "$THEME" ] && exit 0
|
[ ! -n "$THEME" ] && exit 0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user