refactor: @catppuccin_flavour
-> @catppuccin_flavor
(#277)
Most catppuccin ports have adopted the spelling flavor. `@catppuccin_flavour` is still available but no longer documented and `@catppuccin_flavor` takes priority.
This commit is contained in:
parent
3ffbc3700b
commit
84a84bdd8f
3 changed files with 14 additions and 5 deletions
|
@ -27,7 +27,7 @@ main() {
|
|||
|
||||
# Batch options for loading the colorscheme and everyting before
|
||||
add_tmux_batch_option "@catppuccin_custom_plugin_dir"
|
||||
add_tmux_batch_option "@catppuccin_flavour"
|
||||
add_tmux_batch_option "@catppuccin_flavor"
|
||||
|
||||
run_tmux_batch_commands
|
||||
|
||||
|
@ -44,7 +44,16 @@ main() {
|
|||
local color_interpolation=()
|
||||
local color_values=()
|
||||
local temp
|
||||
theme="$(get_tmux_batch_option "@catppuccin_flavour" "mocha")"
|
||||
|
||||
theme="$(get_tmux_batch_option "@catppuccin_flavor" "")"
|
||||
|
||||
# NOTE: For backwards compatibility remove before 1.0.0 and set default for
|
||||
# `@catppuccin_flavor` from `""` to `"mocha"`
|
||||
if [ -z "$theme" ]; then
|
||||
theme="$(get_tmux_option "@catppuccin_flavour" "mocha")"
|
||||
tmux_echo "catppuccin warning: \\\"@catppuccin_flavour\\\" has been deprecated use \\\"@catppuccin_flavor\\\"" 103
|
||||
fi
|
||||
|
||||
# NOTE: Pulling in the selected theme by the theme that's being set as local
|
||||
# variables.
|
||||
# https://github.com/dylanaraps/pure-sh-bible#parsing-a-keyval-file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue