Skip to content

Commit

Permalink
fix: warning @catppuccin_flavour (#296)
Browse files Browse the repository at this point in the history
No longer warn when `@catppuccin_flavor` _and_ `@catppuccin_flavour` are not set
  • Loading branch information
vdbe authored Aug 15, 2024
1 parent 9ee1695 commit a71f3c0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions catppuccin.tmux
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,12 @@ main() {
# 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
theme="$(get_tmux_option "@catppuccin_flavour" "")"
if [ -n "$theme" ]; then
tmux_echo "catppuccin warning: \\\"@catppuccin_flavour\\\" has been deprecated use \\\"@catppuccin_flavor\\\"" 103
else
theme="mocha"
fi
fi

# NOTE: Pulling in the selected theme by the theme that's being set as local
Expand Down

0 comments on commit a71f3c0

Please sign in to comment.