Mercurial > hg > cc > cirrus_work
view .bashrc @ 91:460f0599e8cd
mostly working, but need to reorder in case of cfid and friends
author | Henry S. Thompson <ht@inf.ed.ac.uk> |
---|---|
date | Tue, 05 Sep 2023 17:32:46 +0100 |
parents | fd9bcd759606 |
children | e1a05ead2b1c |
line wrap: on
line source
# .bashrc # Uncomment the following line if you don't like systemctl's auto-paging feature: # export SYSTEMD_PAGER= # Login for singularity # Source global definitions savehist () { hc=$(history 1 | tr -d '\n' | cut -d ' ' -f 2); if [ $((hc % ${HIST_FREQ-10})) = 0 ]; then history -a; fi } prompt () { savehist echo -ne '\033]0;'${HOSTNAME/-login/} ${PWD/$HOME/w\~}'\007' } PATH=$PATH:$HOME/.local/bin:$HOME/bin if [ "$PS1" ]; then echo "Singularity bash" 1>&2 # don't put duplicate lines or lines starting with space in the history. # See bash(1) for more options export HISTCONTROL=ignoreboth # append to the history file, don't overwrite it shopt -s histappend # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) export HISTSIZE=3000 export HISTFILESIZE=6000 export HISTIGNORE='[ ]*:&:[fb]g:exit' # fix $W -> \$W after tab completion shopt -u progcomp if [ -d /mnt/lustre/indy2lfs/sw/ ] then # We have access to mounted modules from Cirrus, use anaconda python libs, # in particular, tkinter for matplotlib export MODULES=/mnt/lustre/indy2lfs/sw export SING=csing export PYTHONPATH=:/usr/lib/python39.zip:/usr/lib/python3.9:/usr/lib/python3.9/lib-dynload:/usr/local/lib/python3.9/dist-packages:/usr/lib/python3/dist-packages PATH=$MODULES/anaconda/anaconda3-2021.11/bin:$PATH export XDG_RUNTIME_DIR=/tmp/runtime-$USER fi fi EDITOR=xemacs PATH=$PATH:$HOME/.local/bin:$HOME/bin HHOME=/home/dc007/dc007/$(whoami) export PATH EDITOR HHOME