OSX Terminal Fun VI: Enhanced Completion
The basic config for tcsh includes auto-completion using the tab key (like using escape for bash), i.e. if from the terminal you type:
% cd ~/Lib <tab>
Don't actually type <tab>, hit the tab key on your keyboard. If you hit the tab key with "Lib" spelled, the shell looks under "~/" for anything starting with "Lib" and sees the "Library" directory and fills it in for you. If there is "Library" and "Librato", hitting the tab key twice will show you all the choices.
But if you typed:
% cd ~/lib <tab>
You wouldn't see anything- as while HFS+ is case-insensitive (yet preserves case) the unix tools that ship with OSX are well, from the unix world and assume if you type "lib" that you want "lib" and not "Lib". This can get annoying straight quick for a whole host of reasons, but luckily you can add a directive to the rc.mine file we setup earlier though to enhance the autocompletion.
Type:
% pico -w ~/Library/init/tcsh/rc.mine
And on the second line (under the set prompt line code) cut and paste the below command:
set complete = enhance
Create a new shell, and type:
% cd ~/lib
And you'll instead of getting nothing now you will automatically get:
% cd ~/Library/
Pretty nifty, eh?
Comments (4)
Posted by: drunkenbatman at April 7, 2004 12:32 AM
To the mail question:
Somehow you sent yourself mail! :) So when your shell starts it is seeing unread mail messages in your directory. How you did this I'm going to have to leave up to you. In your home directory (assuming you aren't logged in as root) you should see a /mail directory. $ man mail should help you get a handle on how to use it.
To the iniit.sh error:
I'm going to have to assume you have been playing with fink, which creates and installs to the /sw directory. You have a typo in your .bash_profile or .bashrc, depending on where you typed that in... it should be init.sh.
Posted by: jtimleck at October 12, 2005 05:50 PM
One sends oneself mail through programs like Norton System Works...Long since pulled for it's crappiness but it lives on in cron apparently - sending the computer (me) messages EVERY day about what it's trying to do.
What I'm trying to do it KILL this program... the man files are helpful in telling you what you can do but of course this is a startup file, not really a mail file - I've tried to search out mailrc in visible and invisible files...no luck.... Any suggestions?
jt
Posted by: matt at November 4, 2005 10:23 AM
jt-
Use "crontab -e" to edit your cron file. Remove the Symantec lines from there.








Hey,
I have os x and when I start the terminal, there are 2 lines at the top of the terminal window. One reads, “you have mail” but I have no idea why it says that, and would like it to stop saying so. The other says “-bash: /sw/bin/iniit.sh:No such file or directory...
I would like it to stop saying that also.
What is going on here, and how can I fix it?
Thanks,
- David