Lacking Natural Simplicity

Random musings on books, code, and tabletop games.

Case-insenstive filename completion with bash and emacs

It's strange, I know, that while I like case sensitive filenames, I don't actually want to be bothered matching the case exactly when I'm using tab completion. Fortunately, emacs and bash both accommodate my whims. For bash, add

set completion-ignore-case on

to your ~/.inputrc file. For emacs, add

(read-file-name-completion-ignore-case t)

to your emacs initialization files. Of course, if want to get rid of all completion case sensitivity, you need

(setq completion-ignore-case t)

too.

Print Friendly and PDF

Comments

Comments powered by Disqus