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

Constantly showing suggestion even when using suggestion #59

Open
bduff9 opened this issue Jan 4, 2022 · 0 comments
Open

Constantly showing suggestion even when using suggestion #59

bduff9 opened this issue Jan 4, 2022 · 0 comments

Comments

@bduff9
Copy link

bduff9 commented Jan 4, 2022

Hello! Just installed this yesterday and am unsure if I am missing something as it doesn't seem to work as expected. I tried using the various config options to change the behavior but am currently stuck.

If I use a command that has an alias, such as npm i -g yarn, I get a correct suggestion to use npmg yarn instead. However, when I use that, I get the same suggestion. Would love to use the force option to force me to use aliases, but this currently means I can run no commands that have an alias.

Some sample output when I have force on:

❯ zshconfig
Alias tip: zshconfig
❯ zshconfig
Alias tip: zshconfig
❯ npmg yarn
Alias tip: npmg yarn
❯ nano ~/Dropbox/ohmyzsh/zshrc
Alias tip: nano ~/Dropbox/ohmyzsh/zshrc

The current options I have set in my .zshrc are:

# Alias-tips options
export ZSH_PLUGINS_ALIAS_TIPS_TEXT="Alias tip: "
export ZSH_PLUGINS_ALIAS_TIPS_EXCLUDES="ls"
export ZSH_PLUGINS_ALIAS_TIPS_EXPAND=1
export ZSH_PLUGINS_ALIAS_TIPS_FORCE=1
export ZSH_PLUGINS_ALIAS_TIPS_REVEAL=0
export ZSH_PLUGINS_ALIAS_TIPS_REVEAL_TEXT="Alias was: "
export ZSH_PLUGINS_ALIAS_TIPS_REVEAL_EXCLUDES=(ls)

Would love to use this plugin so any help would be appreciated!

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

No branches or pull requests

1 participant