tmux-plugins / tpm

Tmux Plugin Manager
MIT License
11.95k stars 420 forks source link

Why do we need set -g @plugin 'tmux-plugins/tpm' ? #185

Closed gpakosz closed 3 years ago

gpakosz commented 3 years ago

Hello @bruno-

I'm curious about the installation instructions: why do we need

set -g @plugin 'tmux-plugins/tpm'

at all?

Is it a leftover from a previous version? As far as I can tell it has no effect as the tpm repository doesn't contain any .tmux file.

Thanks!

bruno- commented 3 years ago

That line is not necessary but it's there so that tpm can update to a new version of itself. You run it with this line run '~/.tmux/plugins/tpm/tpm'

gpakosz commented 3 years ago

I see. Thank you.

gpakosz commented 3 years ago

Hmm now I realize: it doesn't seem necessary as tpm knows its own location and could update itself without this line.

bruno- commented 3 years ago

What if someone omits set -g @plugin 'tmux-plugins/tpm' and wants to manage tpm manually? I use tpm for most of the plugins but sometimes manually manage a plugin or two via raw git commands.