view .bashrc @ 20:5371599c0cfa

local setup
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Wed, 18 Mar 2020 10:56:23 +0000
parents 65a56c0d1c1f
children b24755311af8
line wrap: on
line source

# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
	. /etc/bashrc
fi

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

# User specific aliases and functions
module add gnu-parallel
export N1=rli4n35
export N2=rli6n35
export NN="$N1 $N2"

# Tools
function lss() {
  /bin/ls -l "$@" | sort -nr -k 5,5
  }

function sus() {
  sort "$@" | uniq -c | sort -k1nr,1
}

function tot ()
{
    awk '{sum+=$1} END {printf "%u\n",sum}'
}

btot ()
{
    python3 -c 'import sys
n=0
for l in sys.stdin:
 n+=int(l)
print(n)
'
}

function typecat ()
{
  tt=$(type $1)
  case $tt in
   *\ is\ hashed\ *) cat $(echo $tt | cut -f 4 -d ' ' | tr -d '()') ;;
   *\ is\ /*) cat $(echo $tt | cut -f 3 -d ' ' | tr -d '()') ;;
   *) type $1 ;;
  esac
}
export HISTSIZE=3000
export PYTHONPATH=$HOME/lib/python3.6/site-packages

PATH="/lustre/home/dc007/hst/lib/perl5/bin${PATH:+:${PATH}}"; export PATH;
PERL5LIB="/lustre/home/dc007/hst/lib/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB;
PERL_LOCAL_LIB_ROOT="/lustre/home/dc007/hst/lib/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT;
PERL_MB_OPT="--install_base \"/lustre/home/dc007/hst/lib/perl5\""; export PERL_MB_OPT;
PERL_MM_OPT="INSTALL_BASE=/lustre/home/dc007/hst/lib/perl5"; export PERL_MM_OPT;