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

Allow temporary disabling #51

Closed HaleTom closed 6 years ago

HaleTom commented 6 years ago

Feature request

I'd like to be able to temporarily disable this plugin (eg when generating text to copy / paste when lodging bug reports).

If using:

export YSU_MESSAGE_FORMAT=''

I simply get the default message format.

Could you support something like:

export YSU_DISABLE=1  # any non-null value perhaps
MichaelAquilina commented 6 years ago

Hi @HaleTom this should be a really easy change so I'll just go ahead and add that in for you.

MichaelAquilina commented 6 years ago

@HaleTom try out the functions disable_you_should_use and enable_you_should_use in the latest release :)

HaleTom commented 6 years ago

Excellent! Thank you!