Skip to content

Instantly share code, notes, and snippets.

@opensiriusfox
Created June 19, 2018 23:29
Show Gist options
  • Save opensiriusfox/37b3020ffacfefa45f2e57f7914dc716 to your computer and use it in GitHub Desktop.
Save opensiriusfox/37b3020ffacfefa45f2e57f7914dc716 to your computer and use it in GitHub Desktop.
A .cshrc that chainloads to /bin/bash unless csh is explicitly needed
#!/bin/csh
# Override default login C shell to use bash, unless we explicitly call
# the shell. This allows it to be used if truly desired.
if ($SHELL != "/bin/bash") then
if ($?prompt) then
setenv SHELL /bin/bash
exec $SHELL
endif
exit
endif
# Uncomment the following lines to set your text editor.
# If you see warnings in your tools about it not being set,
# then use the following lines to correct the issue.
#setenv VISUAL 'gedit'
#setenv EDITOR 'vi'
#setenv EDITOR 'nano'
# For a more general explanation of the EDITOR and VISUAL variables,
# as well as other good Linux information refer to the Arch-Linux wiki
# article on the topic:
# > https://wiki.archlinux.org/index.php/Environment_variables
# Or view the linux manpage on the topic by running:
# > man enviorn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment