C Shell in Solaris 10
I forget where I found the instructions on to do this, but I simplified them to make it easier for me next time… Anyway here it is.
I set up C shell on the Sun server. Much nicer than Bourne. It has history and a nice looking prompt and everything. Can even use the arrow keys.
As a non root user to change your shell:
passwd -e
It will prompt you for your new shell, you want /bin/tcsh
In your home directory, make/modify ‘.login’ so it contains:
#—–start of file
stty erase ^H
#—–end of file
make/modify ‘.cshrc’ so it contains:
#—–start of file
set autolist
set notify
set correct=cmd
set prompt=”[%n@%m][%c]$ ”
set savehist=7000
setenv PAGER ‘less -s’[/code]
#-----end of file
As root you want to keep the Bourne shell, but if you want, just use it once you are logged in by typing /bin/tcsh at the command prompt.
I copied the .login and .cshrc files to root's home and changed the '$' in the prompt to a '#'
I also copied both of those files to /etc/skel so they can be put in all new users home folders and will be useful if I set their default shell (or they set it) to C shell.
