tmux-plugins / tpm

Tmux Plugin Manager
MIT License
11.9k stars 417 forks source link

Custom directory name per plugin #230

Open L1Q opened 1 year ago

L1Q commented 1 year ago

Context

Some plugins would name their repository not after the plugin, but after the app, notably catppuccin/tmux Their install instructions recommend using tpm like this

set -g @plugin 'catppuccin/tmux'

This results in the following folder path ~/.tmux/plugins/tmux. Not very descriptive and potentially even conflicting.

Git can already clone a repository into a custom target directory

git clone https://github.com/tmux-plugins/tmux-open.git ~/.tmux/plugins/open

Right now, tpm would not recognize the ~/.tmux/plugins/open as a valid tmux-open installation.

Suggestion

theutz commented 1 year ago

I just got bit by this, too! This would be lovely.

FranklinYu commented 1 year ago

I think #217 will fix this issue (if merged).

mebble commented 7 months ago

I got bit this! I wanted to switch from catppuccin/tmux to dracula/tmux but when I <prefix>+I, the dracula plugin just wouldn't get installed. Then I looked into ~/.config/tmux/plugins and found that the catpuccin theme was in the tmux folder. I deleted this folder and only then did dracula get installed, also at the tmux folder! So plugins are not namespaced by the github username; the repo names are essentially global.