mirror of
https://github.com/tmux-plugins/tpm.git
synced 2026-11-02 16:31:31 +00:00
First commit
This commit is contained in:
commit
89b5c18196
6 files changed
+215
No files matched your search
Executable
+22
@@ -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
|
||||
Reference in new issue
Block a user