mirror of
https://github.com/jimeh/tmux-themepack.git
synced 2026-02-19 11:16:43 +00:00
Fix year in license
This commit is contained in:
@@ -165,7 +165,7 @@ in that case :)
|
||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||
Version 2, December 2004
|
||||
|
||||
Copyright (C) 2004 Jim Myhrberg
|
||||
Copyright (C) 2013 Jim Myhrberg
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim or modified
|
||||
copies of this license document, and changing it is allowed as long
|
||||
|
||||
23
tmuxthemes.tmux
Executable file
23
tmuxthemes.tmux
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
theme_option="@themepack"
|
||||
defalut_theme='block/blue'
|
||||
|
||||
get_tmux_option() {
|
||||
local option="$1"
|
||||
local default_value="$2"
|
||||
local option_value="$(tmux show-option -gqv "$option")"
|
||||
if [ -z "$option_value" ]; then
|
||||
echo "$default_value"
|
||||
else
|
||||
echo "$option_value"
|
||||
fi
|
||||
}
|
||||
|
||||
main() {
|
||||
local theme="$(get_tmux_option "$theme_option" "$default_theme")"
|
||||
tmux source-file "$CURRENT_DIR/powerline/${theme}.tmuxtheme"
|
||||
}
|
||||
main
|
||||
Reference in New Issue
Block a user