12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- # .bashrc
- # Source global definitions
- if [ -f /etc/bashrc ]; then
- . /etc/bashrc
- fi
- configure_ecearth()
- {
- # Configure GRIBEX paths
- export LOCAL_DEFINITION_TEMPLATES=/projects/acad/ecearth/opt/gribex/lib/gribtemplates
- export ECMWF_LOCAL_TABLE_PATH=/projects/acad/ecearth/opt/gribex/lib/gribtables
- # Configure grib api paths
- export GRIB_DEFINITION_PATH=/projects/acad/ecearth/opt/grib_api/share/definitions
- export GRIB_SAMPLES_PATH=/projects/acad/ecearth/opt/grib_api/share/ifs_samples/grib1
- export GRIB_BIN_PATH=/projects/acad/ecearth/opt/grib_api/bin
- # Configure and load modules
- pre_load_modules_cmd="module purge"
- module_list="compiler/intel/comp_and_lib/2016.2.181 intelmpi/5.1.3.181/64 hdf5/1.8.18-el6/intel_2016.2.181/intelmpi_5.1.3.181"
- if [ -n "${pre_load_modules_cmd}" ]
- then
- ${pre_load_modules_cmd}
- fi
- module load ${module_list}
- # Add directories to the shared library search path
- export LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+${LD_LIBRARY_PATH}:}"/projects/acad/ecearth/opt/grib_api/lib:/projects/acad/ecearth/opt/openjpeg/lib:/projects/acad/ecearth/opt/netcdf/frontal1/2016.2.181/lib"
- export CPATH=${CPATH:+${CPATH}:}"/projects/acad/ecearth/opt/netcdf/frontal1/2016.2.181/include"
- }
- # User specific aliases and functions
- if [ `hostname` = "frontal1" ]; then
- [[ -f ~/.configure_ecearth ]] && configure_ecearth
- [[ -f ~/.configure_ecearth ]] && rm ~/.configure_ecearth
- fi
- # Path/variables
- # --------------
- export HOST=`uname -n`
- export HISTFILESIZE=6000
- export HISTSIZE=6000
- # Display
- # -------
- export PS1="\[\033[1;39m\]\u@\h\[\033[0;0m\] \t \[\033[0;34m\]\w \[\033[2;31m\]\# \[\033[0;0m\]> "
- # alias
- # -----
- alias vi='vim'
- alias l='ls --color -lh -o'
- alias ll='ls --color -AlF --time-style=long-iso -hs'
- alias lt='ls --color -lh -o -s -rt'
- alias la='ls --color -ah -o -F'
- alias ps="ps --forest"
- alias rm="rm -i"
- alias cd..="cd .."
- alias dc="cd"
- alias sl='ls'
- alias h='history'
- alias df='df -hT -x tmpfs -x devtmpfs -x squashfs'
|