Want to search files effortlessly without worrying about case sensitivity and wildcards? 👀 This custom function can turn your ls command into case-insensitive mode on #Linux, #Unix, #macOS, or #FreeBSD with bash or zsh! ✨
```
casels(){
shopt -s nocaseglob
ls -l -- $*
shopt -u nocaseglob
}
casels '*foo*'
```
For zsh and other examples see https://www.cyberciti.biz/faq/ls-command-case-insensitive-mode-search-pattern-linux-unix/
Conversation
Notices
-
nixCraft 🐧 (nixcraft@mastodon.social)'s status on Wednesday, 17-Jul-2024 20:24:43 JST nixCraft 🐧