1
0
Fork 0
mirror of synced 2024-11-04 08:48:58 -05:00
tpm/scripts/set_tpm_path.sh

19 lines
299 B
Bash
Raw Normal View History

2014-05-18 18:35:55 -04:00
#!/usr/bin/env bash
default_tpm_path="$HOME/.tmux/plugins/"
tpm_path_set() {
2014-05-24 17:15:13 -04:00
tmux show-environment -g TMUX_PLUGIN_MANAGER_PATH
2014-05-18 18:35:55 -04:00
}
set_default_tpm_path() {
2014-05-24 17:15:13 -04:00
tmux set-environment -g TMUX_PLUGIN_MANAGER_PATH "$default_tpm_path"
2014-05-18 18:35:55 -04:00
}
2015-03-30 07:50:04 -04:00
main() {
2014-05-24 17:15:13 -04:00
if ! tpm_path_set; then
set_default_tpm_path
fi
2014-05-18 18:35:55 -04:00
}
main