-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
Description
I have a function called '=' and an alias for = which is 'noglob ='.
(I find it very useful to be able to type things like
= 417 99 2 k /
and have it tell me
4.21
)
and '=' not only seems like a nice alias for this, but is what I used for many years with tcsh before I started using zsh.
Anyway, there is a line in main-highlighter.zsh
local aliased_command="${"$(alias -- $arg)"#*=}"
which gets upset if you have an alias like '='. However, the line
local aliased_command="$aliases[$arg]"
seems to work for = and other aliases (in my tests), and is (arguably)
a bit more succinct and clearer.
Would you consider including it in the main branch?
Thanks.
Jim