mirror of
https://github.com/aljazceru/omakub.git
synced 2026-01-08 15:04:19 +01:00
Separate list from command call for readability
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
# 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user