Skip to content

Conversation

pnavais
Copy link

@pnavais pnavais commented Mar 14, 2025

Rationale
When two plugins are defined using a similar name, they will be cloned to the same location effectively overriding the plugin contents.

How this works
Adding an optional alias suffix to plugin definition to use it in git clone as output directory.
This is specially useful in case of conflicting plugins (i.e. same name) , for example, dracula/tmux, catppuccin/tmux.

set -g @plugin '<plugin>;alias=<alias>'

Using this feature we can define an alias like :

 set -g @plugin 'dracula/tmux;alias=dracula'
 set -g @plugin 'catppuccin/tmux;alias=catppuccin'

this will effectively clone both plugins using the optional alias provided.

@pnavais pnavais changed the title Adding optional alias to plugin definition to use it in git clone as … Adding optional alias to plugin definition to use it in git clone Mar 14, 2025
@pnavais pnavais changed the title Adding optional alias to plugin definition to use it in git clone Adding optional alias to plugin definitions for git clone operations Mar 14, 2025
@brennanfee
Copy link

Any chance this will\can get merged anytime soon?

@ironiq
Copy link

ironiq commented May 28, 2025

I implemented similar in my fork at ironiq/tpm-fork@9673325. If you think, give it a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants