1
0
Fork 0
mirror of synced 2024-12-13 19:05:45 -05:00

escape bindings dir

This commit is contained in:
Bao 2023-11-13 09:26:33 -06:00
parent 99469c4a9b
commit 3673fd9f08
No known key found for this signature in database
GPG key ID: 66B50C2AD65984B2

8
tpm
View file

@ -57,14 +57,16 @@ source_plugins() {
# prefix + U - updates a plugin (or all of them) and reloads TMUX environment # prefix + U - updates a plugin (or all of them) and reloads TMUX environment
# prefix + alt + u - remove unused TPM plugins and reloads TMUX environment # prefix + alt + u - remove unused TPM plugins and reloads TMUX environment
set_tpm_key_bindings() { set_tpm_key_bindings() {
tmux set-environment -g TPM_BINDINGS_DIR "$BINDINGS_DIR"
local install_key="$(get_tmux_option "$install_key_option" "$default_install_key")" local install_key="$(get_tmux_option "$install_key_option" "$default_install_key")"
tmux bind-key "$install_key" run-shell "$BINDINGS_DIR/install_plugins" tmux bind-key "$install_key" run-shell "#{q:TPM_BINDINGS_DIR}/install_plugins"
local update_key="$(get_tmux_option "$update_key_option" "$default_update_key")" local update_key="$(get_tmux_option "$update_key_option" "$default_update_key")"
tmux bind-key "$update_key" run-shell "$BINDINGS_DIR/update_plugins" tmux bind-key "$update_key" run-shell "#{q:TPM_BINDINGS_DIR}/update_plugins"
local clean_key="$(get_tmux_option "$clean_key_option" "$default_clean_key")" local clean_key="$(get_tmux_option "$clean_key_option" "$default_clean_key")"
tmux bind-key "$clean_key" run-shell "$BINDINGS_DIR/clean_plugins" tmux bind-key "$clean_key" run-shell "#{q:TPM_BINDINGS_DIR}/clean_plugins"
} }
supported_tmux_version_ok() { supported_tmux_version_ok() {