Enable overriding default key bindings

Closes #19
This commit is contained in:
Bruno Sutic
2015-03-14 20:20:25 +01:00
parent 4f3e1030e4
commit cf9bd36d15
4 changed files with 28 additions and 6 deletions

10
scripts/helpers.sh Normal file
View File

@ -0,0 +1,10 @@
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
}

5
scripts/variables.sh Normal file
View File

@ -0,0 +1,5 @@
install_key_option="@tpm-install"
default_install_key="I"
update_key_option="@tpm-update"
default_update_key="U"