Last active
January 4, 2016 21:49
-
-
Save netj/8683097 to your computer and use it in GitHub Desktop.
Automatically switch to bash from tcsh/csh. Place the snippet at the beginning of your `~/.cshrc` and `~/.login` files.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# XXX I use GNU BASH | |
# See: http://tuukka.iki.fi/linux/tweaks/bashovertcsh.html | |
# If this is login or some command is to be executed | |
# then change to a sane shell | |
if ($?loginsh || $?command) then | |
setenv SHELL /bin/bash | |
if($?loginsh) exec /bin/bash --login | |
exec /bin/bash -c "$command" | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment