echo "set completion-ignore-case On" >> ~/.inputrc
Open a new terminal window, and it's working. I don't know of any way to activate it for a single session.
|
|
|
In Jaguar under tcsh you could set the tab-completion in the terminal to be case insensitive, so, for example, you could type /vol, press tab and have it complete to /Volumes. The old hint doesn't work with Panther and bash, so here's how.
As a single command, execute this in Terminal.app:
Open a new terminal window, and it's working. I don't know of any way to activate it for a single session.
•
[12,370 views]
Hint Options
Case insensitive completion in 10.3
Since I looked it up, I thought I'd share the address of the "old hint" mentioned (for pre-Panther users).
Case insensitive completion in 10.3
Thank you so much for posting this hint. Case sensitive tab completion has been the number one OS X pet peeve of mine since day one. (I did not know about the tcsh tweak.) If you ever make it to Chicago, let me know. I'd be happy to buy you a beer or a latte or something.
Case insensitive completion in 10.3
For single session application of this option, leave out everything outside the quotes, and the quotes themselves:
Case insensitive completion in 10.3
This doesn't work for a single session. You can't put it in your .bashrc either, you must put it in the .inputrc.
Case insensitive completion in 10.3
Use the "bind" bash builtin to futz with readline settings without modifying ~/.inputrc (or $INPUTRC).
Case insensitive completion in 10.3
To set it for the current session, echo it into the .inputrc as above, and then (in bash) hit C-x C-r (control-x control-r). C-x C-r causes bash to reread its .inputrc file, activating the variable for the current session.
Case insensitive completion in 10.3
It took a few times to get this to work for me (don't know why). Another nice entry in the .inputrc file is
This alters the default behavior of the completion functions so that words which have more than one possible completion cause the matches to be listed immediately instead of ringing the bell.
Do a and scroll down to the "Readline Variables" section for more settings.
Case insensitive completion in 10.3
As mentioned in one of the replies to the "old" post, the old hint works with Panther and tcsh. Never quite got over tcsh...
Case insensitive completion in 10.3
It is still there. It is no longer the default for new accounts in 10.3, but you can switch it back either in netinfo or in terminal itself.
changing login shell
Run:
Other fun .inputrc lines
My big complaint is that Terminal doesn't pass things like PgUp and PgDn to the shell. Hell, I'd be happy if it passed Cmd-PgUp as PgUp. In lieu of being able to use those actual keys, I've changed my standard mappings a bit for OS X: Control-j: history-search-backward Control-k: end-of-history Control-h: beginning-of-line Control-l: end-of-line These basically give me the functionality that I want PgUp, PgDn, Home, and End to have (respectively). Most of them are pretty standard. The interesting one is the first line. For some reason the default value for PgUp (on systems that pass it through to the shell) is start-of-history, which I find absolutely useless. history-search-backward is awesome. Have some commands that you use frequently? Type in the first couple letters than trigger this (Ctrl-j in my mapping here). It'll read through your history backward and complete the command with the last entry that begins with the same prefix. Sooooooooo useful. You may also want to try hitting Ctrl-r then typing the first few characters from something in the history. Another a nice feature.
Bug with Case insensitive completion
For me, applying this hint works but creates a bug where folders with spaces in their names get garbled by the auto-completion attempt.
Example:
Any ideas? Anyone seen this?
Thanks! (10.3.2)---
Bug with Case insensitive completion
I believe what you're seeing is bash's handling of spaces in files. For instance a folder called test test will show up as test\ test/
Case insensitive completion in 10.3
Very useful! You can also add this line to your .bash_profile in your home directory so that it is automagically aplied at login every time.
Case insensitive completion in 10.3
does not work in Tiger... |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.51 seconds |
|