Page 1 of 1
Case sensitivity
Posted: 26. Oct 2013, 13:27
by GJones
... is IMO by far the most annoying thing about the UNIX command line. Fortunately for those of us still using bash, there is an easy solution.
Put that in ~/.inputrc for per-user configuration, or /etc/inputrc to apply it system-wide. Next time you open a bash prompt, hitting tab will complete to the nearest possible word regardless of case, e.g. "~/proj" -> "~/Projects/". Since I started using case-insensitive completion, I have pretty much abandoned graphical file managers - the CLI is that much faster.
Re: Case sensitivity
Posted: 29. Oct 2013, 21:04
by kcirick
Thanks for the tip!
I really don't have issues with case sensitivity when navigating through my files. I do use thunar for when I want to open certain media files using different applications. Do you have any cool tricks? For example, if I type in 'open file.pdf' will bring up evince (or other pdf viewer), and if I type 'open file.avi', it will bring up mplayer, etc...
Re: Case sensitivity
Posted: 30. Oct 2013, 00:19
by mimosa
MPlayer is only case-sensitive in slapt-get. Thx gd. :p
Re: Case sensitivity
Posted: 30. Oct 2013, 06:45
by gapan
kcirick wrote:Thanks for the tip!
I really don't have issues with case sensitivity when navigating through my files. I do use thunar for when I want to open certain media files using different applications. Do you have any cool tricks? For example, if I type in 'open file.pdf' will bring up evince (or other pdf viewer), and if I type 'open file.avi', it will bring up mplayer, etc...
You mean like:
or
or whatever filetype you want really...
You can even alias xdg-open to open...
Re: Case sensitivity
Posted: 30. Oct 2013, 15:32
by GJones
For that you probably want to use perl-File-MimeInfo via the mimeopen command.
Edit: perl-File-MimeInfo is bugged ATM, just a second...
Re: Case sensitivity
Posted: 30. Oct 2013, 19:44
by kcirick
gapan wrote:kcirick wrote:Thanks for the tip!
I really don't have issues with case sensitivity when navigating through my files. I do use thunar for when I want to open certain media files using different applications. Do you have any cool tricks? For example, if I type in 'open file.pdf' will bring up evince (or other pdf viewer), and if I type 'open file.avi', it will bring up mplayer, etc...
You mean like:
or
or whatever filetype you want really...
You can even alias xdg-open to open...
Yup. Exactly what I was looking for. Thanks