Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Is there a way to make global aliases more available?



Hi
I define a global alias:

alias -g EMPTYSTR='[[:space:][:INCOMPLETE:][:INVALID:]$'\e']#'

to then use it in [[ "" == EMPTYSTR ]]. It works, however any addition to the alias name makes it inactive, e.g.:

[[ "" == (EMPTYSTR) ]]
[[ "" == (#b)(EMPTYSTR) ]]

won't work. Is there any way to somehow improve the alias recognizability?
--
Best regards,
Sebastian Gniazdowski



Messages sorted by: Reverse Date, Date, Thread, Author