tmux-catppuccin-coal/catppuccin.tmux
Roger Steve Ruiz 7208fc8363
Adding option to enable window_tabs;
This option, for now, defaults to false. This is just so it keeps the
initial design intention for the original design of the plugin. I may
flip it or change the name of the variable in future commits. This patch
is addressing catppuccin/tmux#16.

Co-Authored-By: Robert Menke <robert.b.menke@gmail.com>
2022-11-23 14:10:27 -05:00

25 lines
556 B
Bash
Executable file

#!/usr/bin/env bash
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
get-tmux-option() {
local option value default
option="$1"
default="$2"
value="$(tmux show-option -gqv "$option")"
if [ -n "$value" ]; then
echo "$value"
else
echo "$default"
fi
}
main() {
local theme
local window_tabs_enabled
theme="$(get-tmux-option "@catppuccin_flavour" "mocha")"
window_tabs_enabled="$(get-tmux-option "@catppuccin_window_tabs_enabled" "false")"
tmux run -b "$CURRENT_DIR/catppuccin-${theme}.tmuxtheme"
}
main "$@"