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/
In this quick tip, I explain how to match case insensitive patterns with the ls command on your #Linux, #macOS, *BSD and #Unix like system 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.