Enable overriding default key bindings

Closes #19
This commit is contained in:
Bruno Sutic committed 2015-03-14 20:21:38 +01:00
1 parent 4f3e1030e4
commit cf9bd36d15
4 files changed
+28 -6

No files matched your search

+10
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
View File
@@ -0,0 +1,5 @@
install_key_option="@tpm-install"
default_install_key="I"
update_key_option="@tpm-update"
default_update_key="U"