* case insensitive suffix aliases
@ 2024-05-11 20:28 Ray Andrews
2024-05-11 21:15 ` Bart Schaefer
0 siblings, 1 reply; 3+ messages in thread
From: Ray Andrews @ 2024-05-11 20:28 UTC (permalink / raw)
To: Zsh Users
[-- Attachment #1: Type: text/plain, Size: 281 bytes --]
alias -s {t,T}{x,X}{t,T}='geany'
... can that be avoided? It would be cool to have case insensitive
suffix aliases. I'm having to add a few, and it sure is a bother to use
the above to capture all the variations. Like with images one sees:
.jpg, .JPG, and sometimes .Jpg.
[-- Attachment #2: Type: text/html, Size: 507 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: case insensitive suffix aliases
2024-05-11 20:28 case insensitive suffix aliases Ray Andrews
@ 2024-05-11 21:15 ` Bart Schaefer
2024-05-11 22:41 ` Ray Andrews
0 siblings, 1 reply; 3+ messages in thread
From: Bart Schaefer @ 2024-05-11 21:15 UTC (permalink / raw)
To: Ray Andrews; +Cc: Zsh Users
On Sat, May 11, 2024 at 1:28 PM Ray Andrews <rayandrews@eastlink.ca> wrote:
>
> alias -s {t,T}{x,X}{t,T}='geany'
>
> ... can that be avoided?
I believe "setopt nocaseglob" will handle that, but otherwise no.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: case insensitive suffix aliases
2024-05-11 21:15 ` Bart Schaefer
@ 2024-05-11 22:41 ` Ray Andrews
0 siblings, 0 replies; 3+ messages in thread
From: Ray Andrews @ 2024-05-11 22:41 UTC (permalink / raw)
To: zsh-users
On 2024-05-11 14:15, Bart Schaefer wrote:
> On Sat, May 11, 2024 at 1:28 PM Ray Andrews <rayandrews@eastlink.ca> wrote:
>> alias -s {t,T}{x,X}{t,T}='geany'
>>
>> ... can that be avoided?
> I believe "setopt nocaseglob" will handle that, but otherwise no.
I read about that on the internet. Tried it, but no luck. Maybe one of
those things that depends on a particular set of options at the same
time? Anyway, IMHO it would be a very nice little feature. I'd guess
easy enough to code. Honestly tho 99% of the time a capitalized and a
lower case version are sufficient but it looks rather redundant.
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-05-11 22:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-11 20:28 case insensitive suffix aliases Ray Andrews
2024-05-11 21:15 ` Bart Schaefer
2024-05-11 22:41 ` 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).