Mercurial > hg > cc > cirrus_home
view .bashrc @ 0:65a56c0d1c1f
bolting the barn door...
author | Henry S. Thompson <ht@inf.ed.ac.uk> |
---|---|
date | Tue, 18 Feb 2020 13:15:05 +0000 |
parents | |
children | 5371599c0cfa |
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