MichaelAquilina / zsh-you-should-use

📎 ZSH plugin that reminds you to use existing aliases for commands you just typed
GNU General Public License v3.0
1.41k stars 44 forks source link

Add symlink for easier installation #124

Closed kaykayehnn closed 1 year ago

kaykayehnn commented 1 year ago

This PR adds a symlink to the plugin file so that it has the same name as the repo.

This could make installation easier for cases such as automated install scripts (example)

As it is currently, the repo name being different from the plugin file makes it a bit cumbersome to add it to oh-my-zsh's plugin array because it expects both the directory and plugin file to have the same name. My use case, which clones the plugin without renaming it, results in [oh-my-zsh] plugin 'zsh-you-should-use' not found because of this.

I'd be happy if you accepted this change as both the current suggested installation at plugins/you-should-use will keep working and installing as plugins/zsh-you-should-use will be supported as well

MichaelAquilina commented 1 year ago

Going to run this locally for a day just to make sure it doesnt cause any side effects. If I see everything works fine I'll be happy to merge this in

MichaelAquilina commented 1 year ago

Seems like there are no side effects so just going to merge if it's helpful :)