1
0
Fork 0
mirror of synced 2024-11-13 21:18:57 -05:00
tpm/scripts/set_tpm_path.sh
2014-05-24 23:15:13 +02:00

22 lines
339 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"
}
ensure_tpm_path() {
if ! tpm_path_set; then
set_default_tpm_path
fi
}
main() {
ensure_tpm_path
}
main