If you want to display your location in your shell titlebar, you can do the following: (it works with terminal.app, xterm, aterm, eterm)
Create (with an editor like vim) a file named .settitle in your home directory, and write the following commands:
Code:
alias settitle 'echo -n "^[]2;$cwd^G"'
settitle
alias cd 'cd \!*;settitle'
alias pushd 'pushd \!*;settitle'
alias popd 'popd \!*;settitle'
To type the ^[ character into the file type ctrl-v followed by the ESC key.
And the ^G character by pressing ctrl-v followed by ctrl-g.
I had trouble with pico to type the "special characters". Copy-paste doesn't work. So again I repeat, better you use an editor like vim or emacs and don't miss any characters or it will not work.
After you created .settitle, add the following to your ~/.cshrc file:
source ~/.settitle
Now you should get your location in the window title and it will follow you whenever you change directory.
In addition, if you want also to put your username in the titlebar in tcsh, modify the settitle alias in your .settile file like this :
Code:
alias settitle 'echo -n "^[]2;$(USER)@$(HOST) 'dirs'^G"'
This will display
name@host followed by the directory stack.
You could also add the following aliases to your collection :
alias psh 'pushd'
alias pop 'popd'
alias cl 'cd \!* ; ls'
And I'm sure that my writing below has been posted in another threads, but just to remember it:
Instead of "Welcome to Darwin" you can make a more exciting message by editing /etc/motd with your unix editor and write your own welcome phrase.
To get the date to show on opening of a new term window in tcsh just type in your .tcshrc or .cshrc file :
date
Finally, I have installed with fink the package:
fortune-mod-9708-2: Database of witticisms
Witticisms that appear before the prompt. After installation, just write in your .cshrc file:
fortune
Well, I must make place for the next one to come. Enjoy and sorry for the long post.
Cheers...