Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Case-insensitive matching with Eshell?

How can you do case-insensitive pattern matching with Eshell? With Zsh, one can use "globbing tags" (i.e., if the extended_glob is turned on) such as in

print L(#i)in(#I)ux

which would match LINux for instance.

Is there anything like that for Eshell? From what I know Eshell doesn't have a support for something like Zsh's "globbing tags", but do you know if there is an Eshell predicate for case-insensitive matching? If there isn't, do you have any suggestion of how to define a predicate in Eshell to do that?

Thanks!

like image 812
falsum Avatar asked Sep 03 '11 11:09

falsum


1 Answers

(setq eshell-glob-case-insensitive t) Does not work.

(setq eshell-cmpl-ignore-case t) This works. Put it in your .emacs or .emacs.d/init.el.

like image 167
flyrain Avatar answered Sep 29 '22 04:09

flyrain