Christopher Jackson's

hacks, thoughts, and utter ramblings.

Change Shell Script on Sun Machines

So if you are a Penn State Harrisburg student you might have been as frustrated as me to find out that you cant change your default shell. Here is a little hack that will run whatever shell you want and not mess up your ability to sftp onto these machines.
1
2
3
cd ~;
mv .cshrc .cshrc_old
vi .cshrc
Put the following into this file.
1
2
3
4
#!/bin/csh
if ( $?prompt ) then
exec /bin/bash
endif
Then put any env info you want into the following file:
1
~/.bash_rc