Skip to content

Instantly share code, notes, and snippets.

@netj
Last active January 4, 2016 21:49
Show Gist options
  • Save netj/8683097 to your computer and use it in GitHub Desktop.
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.
# 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