tell ls to find and list files regardless of their case insensitive.
https://files.mastodon.social/media_attachments/files/112/801/571/958/360/561/original/82cdcbb7b8505a37.png
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/
076萌SNS is a social network, courtesy of 076. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.
All 076萌SNS content and data are available under the Creative Commons Attribution 3.0 license.