# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
	. /etc/bashrc
fi
if [ "`echo $HOSTNAME | cut -c1-5`" = login ]; then
   PS1="\e[0;31m[\u@\h \W]$ \e[m"
fi
if [ "`echo $HOSTNAME | cut -c1-5`" = cnode ]; then
   PS1="\e[0;32m[\u@\h \W]$ \e[m"
fi


# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=

alias rm='rm -i'
alias mv='mv -i'
alias cp='cp -i'
alias qsubi1='qsub -X -I -l select=1:ncpus=1:mpiprocs=1 -q R6060705 -l walltime=10:00:00 -P WCHPC'
alias qs="qstat -u $USER"
alias mat='matlab -nodesktop -nosplash'

# User specific aliases and functions
module purge
module load chpc/earth/nedit/5.7
module load gcc
module load chpc/earth/ncview/2.1.7-gcc
module load chpc/math/matlab/R2020a
module load chpc/earth/NCO/4.9.3
module load chpc/compmech/meld-3.22.1
module load chpc/python/3.7.0
module load chpc/parallel_studio_xe/2020u1
module load chpc/earth/netcdf/4.7.4/intel2020u1

