Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding optional alias to plugin definitions for git clone operations #315

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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
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.

1 participant