zsh-users
 help / color / mirror / code / Atom feed
* Is there a way to make global aliases more available?
@ 2023-01-18 14:54 Sebastian Gniazdowski
  2023-01-18 17:16 ` Peter Stephenson
  0 siblings, 1 reply; 3+ messages in thread
From: Sebastian Gniazdowski @ 2023-01-18 14:54 UTC (permalink / raw)
  To: Zsh Users

[-- Attachment #1: Type: text/plain, Size: 373 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1600 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-01-18 19:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-18 14:54 Is there a way to make global aliases more available? Sebastian Gniazdowski
2023-01-18 17:16 ` Peter Stephenson
2023-01-18 19:18   ` Ray Andrews

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).