Thursday, February 9, 2012

Use .cshrc to run bash

On the CS department computers at school, the default shell is csh, and we're not allowed to run chsh to change it. However, bash is available, so, you can modify your .cshrc file to automatically run bash instead.

Edit ~/.cshrc so that it only includes the following code:

if($?prompt) cd ~ && exec bash --login

No comments:

Post a Comment