comparison .bashrc @ 72:fd9bcd759606

work with csing
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Tue, 08 Aug 2023 17:46:20 +0100
parents 05820245a047
children e1a05ead2b1c
comparison
equal deleted inserted replaced
71:12776abdbc2b 72:fd9bcd759606
18 { 18 {
19 savehist 19 savehist
20 echo -ne '\033]0;'${HOSTNAME/-login/} ${PWD/$HOME/w\~}'\007' 20 echo -ne '\033]0;'${HOSTNAME/-login/} ${PWD/$HOME/w\~}'\007'
21 } 21 }
22 22
23 PATH=$PATH:$HOME/.local/bin:$HOME/bin
24
23 if [ "$PS1" ]; then 25 if [ "$PS1" ]; then
24 echo "Singularity bash" 1>&2 26 echo "Singularity bash" 1>&2
25 # don't put duplicate lines or lines starting with space in the history. 27 # don't put duplicate lines or lines starting with space in the history.
26 # See bash(1) for more options 28 # See bash(1) for more options
27 export HISTCONTROL=ignoreboth 29 export HISTCONTROL=ignoreboth
31 33
32 # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) 34 # for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
33 export HISTSIZE=3000 35 export HISTSIZE=3000
34 export HISTFILESIZE=6000 36 export HISTFILESIZE=6000
35 export HISTIGNORE='[ ]*:&:[fb]g:exit' 37 export HISTIGNORE='[ ]*:&:[fb]g:exit'
38
39 # fix $W -> \$W after tab completion
40 shopt -u progcomp
41
42 if [ -d /mnt/lustre/indy2lfs/sw/ ]
43 then
44 # We have access to mounted modules from Cirrus, use anaconda python libs,
45 # in particular, tkinter for matplotlib
46 export MODULES=/mnt/lustre/indy2lfs/sw
47 export SING=csing
48 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
49 PATH=$MODULES/anaconda/anaconda3-2021.11/bin:$PATH
50 export XDG_RUNTIME_DIR=/tmp/runtime-$USER
51 fi
52
36 fi 53 fi
37 54
38 EDITOR=xemacs 55 EDITOR=xemacs
39 56
40 PATH=$PATH:$HOME/.local/bin:$HOME/bin 57 PATH=$PATH:$HOME/.local/bin:$HOME/bin