First commit

This commit is contained in:
Bruno Sutic
2014-05-19 00:35:55 +02:00
commit 89b5c18196
6 changed files with 215 additions and 0 deletions

22
scripts/set_tpm_path.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/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