Mercurial > hg > cc > cirrus_home
view .bashrc @ 70:efa138bcb171
x
author | Henry S. Thompson <ht@inf.ed.ac.uk> |
---|---|
date | Tue, 28 Apr 2020 19:01:41 +0100 |
parents | b24755311af8 |
children | 8fb11e337e23 |
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; PATH=$PATH:$HOME/.local/bin:$HOME/bin EDITOR=emacs export PATH EDITOR export ANT_HOME=$HOME/src/apache-ant-1.10.7 export MAVEN_HOME=$HOME/src/apache-maven-3.6.3 export JAVA_HOME=$HOME/lib/openjdk-8u252-b09 export PATH=${PATH}:${ANT_HOME}/bin:${MAVEN_HOME}/bin