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.49k stars 44 forks source link

Support for abbreviations #133

Open p1r473 opened 4 months ago

p1r473 commented 4 months ago

Add ability to show what alias you just used is aliased to (more like a "you used" opposite of "you should use" in case you forget you keep using aliases Solves #129 Split off from #131

Can be disabled easily with zstyle ':you-should-use:' you_should_use_alias_enabled false zstyle ':you-should-use:*' you_should_use_abbreviation_enabled false

Also added something that I think makes sense -local limit="${1:-9000000000000000}" +local limit="${1:-$HISTSIZE}"

AtifChy commented 2 months ago

is this ready to be merged?

AtifChy commented 2 months ago

Additionally, I've observed that it displays the abbreviation tip message, whether or not an abbreviation is used.