tmux-gruvbox/gruvbox-tpm.tmux
Maciej Sypień 9cb521fef1 Add basic gruvbox light theme using 256 colors
Add basic gitignore file
Add opening config files in correct vim file-types
Exclude vim file artifacts
Fix dark theme against changes in tmux v2.9
Fix typos
Improve plugin installer
Update README
Update changes to gruvbox dark theme
Update config and remove deprecated/outdated configuration
Update tmux-gruvbox-dark.conf
2020-10-29 22:18:31 +01:00

25 lines
504 B
Bash
Executable file

#!/usr/bin/env bash
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
THEME_OPTION="@tmux-gruvbox"
DEFAULT_THEME="dark"
get_theme() {
local option="$1"
local default_value="$2"
local option_value
option_value=$(tmux show-option -gqv "$option")
if [ -z "$option_value" ]; then
print "$default_value"
else
print "$option_value"
fi
}
main() {
local theme
theme=$(get_theme "$THEME_OPTION" "$DEFAULT_THEME")
tmux source-file "$CURRENT_DIR/tmux-gruvbox-${theme}.conf"
}
main