Customize shell

From DISI
Revision as of 21:30, 18 October 2012 by Frodo (talk | contribs) (Created page with "How to customize .cshrc There are four parts: 1) set up a custom DOCK_BASE, SOFT if required 2) set up standard shell variables (vars.csh) 3) custom paths, environment 4) def...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

How to customize .cshrc

There are four parts: 1) set up a custom DOCK_BASE, SOFT if required 2) set up standard shell variables (vars.csh) 3) custom paths, environment 4) define environment (env.csh)

First let's look at the standard file:

# .cshrc
#setenv DOCK_BASE /raid1/people/jji/dockenv
#
# initial step
source /raid3/software/labenv/vars.csh
#
# custom changes here
setenv EDITOR vi
unset autologout
#
# final step
source $SOFT/labenv/env.csh

Notes: 1) If you have your own dockenv, or you want to use one other than the lab default, you must set up DOCK_BASE before sourcing vars.csh 2) If you have all you software (Schrodinger, Openeye, etc) installed elsewhere, you need to set SOFT before sourcing vars.csh. Generally, you don't want this. 3) You can override individual choices of software packages between vars.csh and env.csh by setting ENV_* variables. To see what these are, do

printenv | grep ENV_

4) Thus say you want to use the 2012-10 version of Schrodinger instead of the default current version. You would add the following line after source vars.csh:

setenv ENV_SCHRODINGER $SOFT/schrodinger/2012-10/env.csh

Then, in env.csh, the file pointed to by ENV_SCHRODINGER will be sourced to set up the correct enviroment. Note that ENV_SCHRODINGER can point anywhere, including to places in your own home directory.

Category:Internal