Skip to content

Commit

Permalink
Make Tmux auto-install TPM and plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
vicnett committed Nov 9, 2024
1 parent bc80c69 commit a02ccb3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion byobu/.tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,11 @@ set -g @resurrect-strategy-nvim 'session'
# Always keep window numbers sequential without gaps
set-option -g renumber-windows on

# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
# Install TPM if not found
if "test ! -d ~/.tmux/plugins/tpm" {
set-environment -g TMUX_PLUGIN_MANAGER_PATH "~/.tmux.d/plugins/"
run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'
}

# Initialize TPM (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'

0 comments on commit a02ccb3

Please sign in to comment.