tpm/scripts/set_tpm_path.sh
2015-03-30 13:50:04 +02:00

19 lines
299 B
Bash
Executable File

#!/usr/bin/env bash
default_tpm_path="$HOME/.tmux/plugins/"
tpm_path_set() {
tmux show-environment -g TMUX_PLUGIN_MANAGER_PATH
}
set_default_tpm_path() {
tmux set-environment -g TMUX_PLUGIN_MANAGER_PATH "$default_tpm_path"
}
main() {
if ! tpm_path_set; then
set_default_tpm_path
fi
}
main