-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Aliases containing suffix-aliases as the first element are highlighted wrongly as suffix-alias #574
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
Comments
Cannot reproduce. Do you set Aside: To test this I had to set ZSH_HIGHLIGHT_STYLES to empty, otherwise changes to the |
https://github.com/frebib/dotfiles/blob/master/.config/zsh/.zshrc#L116-L117 Interestingly I cannot reproduce it with |
AH. I have Whilst these are somewhat related it is not the expected behaviour. Perhaps a regression? |
Joe Groocock wrote on Tue, 30 Oct 2018 19:59 +0000:
I have `alias -s git="git clone --recursive"` and other aliases such as
`alias ga="git add"`
Whilst these are somewhat related it is not the expected behaviour.
Perhaps a regression?
Can you give a complete example, starting from `zsh -f`, please?
|
zsh -f
source path/to/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
ZSH_HIGHLIGHT_STYLES[alias]='fg=red'
ZSH_HIGHLIGHT_STYLES[suffix-alias]='fg=magenta'
alias ga="git add"
ga # this is highlighted red
alias -s git="git clone"
[email protected]/repo.git # this is magenta
ga # this is also magenta but should still be red |
I can reproduce this, and you don't even need |
Following the discussion in #565, it seems to be affecting me too. I don't see any mention of
suffix-alias
but it seems that all aliases are highlighted to whatever I set thesuffix-alias
highlight to.It doesn't bother me too much as I've just set
suffix-alias
to what I hadalias
set to before, I don't really use global/suffix aliases much.Running commit 4ce56a8
The text was updated successfully, but these errors were encountered: