Automatically install TPM plugins upon initial launch
Otherwise, the user has to remember to `^a I` when inside tmux
This commit is contained in:
parent
371d53f318
commit
e71b90df58
@ -174,6 +174,9 @@ set -g @plugin 'tmux-plugins/tmux-logging'
|
|||||||
# Plugin settings here
|
# Plugin settings here
|
||||||
set -g @continuum-restore 'on'
|
set -g @continuum-restore 'on'
|
||||||
|
|
||||||
|
# Automatically install TPM plugins (eg. first launch)
|
||||||
|
setenv -g TMUX_PLUGIN_MANAGER_PATH '$HOME/.tmux/plugins/'
|
||||||
|
|
||||||
# Install TPM if it does not exist
|
# Install TPM if it does not exist
|
||||||
if "test ! -d ~/.tmux/plugins/tpm" \
|
if "test ! -d ~/.tmux/plugins/tpm" \
|
||||||
"run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'"
|
"run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'"
|
||||||
|
Loading…
Reference in New Issue
Block a user