Account for the subcommand

This commit is contained in:
David Heinemeier Hansson
2024-06-12 00:17:36 +02:00
parent fdc6d7e90e
commit 669fa288be

View File

@@ -19,7 +19,7 @@ set_font() {
sed -i "s/\"editor.fontFamily\": \".*\"/\"editor.fontFamily\": \"$font_name\"/g" ~/.config/Code/User/settings.json
}
if [ "$#" -gt 0 ]; then
if [ "$#" -gt 1 ]; then
choice=${!#}
else
choice=$(gum choose "Cascadia Mono" "Fira Mono" "JetBrains Mono" "Meslo" --height 6)