fix: warning @catppuccin_flavour
(#296)
No longer warn when `@catppuccin_flavor` _and_ `@catppuccin_flavour` are not set
This commit is contained in:
parent
9ee1695d75
commit
a71f3c039b
1 changed files with 6 additions and 2 deletions
|
@ -50,8 +50,12 @@ main() {
|
||||||
# NOTE: For backwards compatibility remove before 1.0.0 and set default for
|
# NOTE: For backwards compatibility remove before 1.0.0 and set default for
|
||||||
# `@catppuccin_flavor` from `""` to `"mocha"`
|
# `@catppuccin_flavor` from `""` to `"mocha"`
|
||||||
if [ -z "$theme" ]; then
|
if [ -z "$theme" ]; then
|
||||||
theme="$(get_tmux_option "@catppuccin_flavour" "mocha")"
|
theme="$(get_tmux_option "@catppuccin_flavour" "")"
|
||||||
tmux_echo "catppuccin warning: \\\"@catppuccin_flavour\\\" has been deprecated use \\\"@catppuccin_flavor\\\"" 103
|
if [ -n "$theme" ]; then
|
||||||
|
tmux_echo "catppuccin warning: \\\"@catppuccin_flavour\\\" has been deprecated use \\\"@catppuccin_flavor\\\"" 103
|
||||||
|
else
|
||||||
|
theme="mocha"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# NOTE: Pulling in the selected theme by the theme that's being set as local
|
# NOTE: Pulling in the selected theme by the theme that's being set as local
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue