Fix year in license

This commit is contained in:
2013-10-20 19:48:07 +01:00
committed by wfxr
parent 193f28352c
commit fdcd8b5bf7
2 changed files with 24 additions and 1 deletions

View File

@@ -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
View 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