Mercurial > hg > cc > cirrus_work
annotate .bashrc @ 84:c18c307cc325
merge, including pointless fix wrt pq
author | Henry Thompson <ht@markup.co.uk> |
---|---|
date | Mon, 21 Aug 2023 13:06:20 -0400 |
parents | fd9bcd759606 |
children | e1a05ead2b1c |
rev | line source |
---|---|
0 | 1 # .bashrc |
2 | |
3 # Uncomment the following line if you don't like systemctl's auto-paging feature: | |
4 # export SYSTEMD_PAGER= | |
5 | |
6 # Login for singularity | |
7 # Source global definitions | |
8 | |
9 savehist () | |
10 { | |
11 hc=$(history 1 | tr -d '\n' | cut -d ' ' -f 2); | |
12 if [ $((hc % ${HIST_FREQ-10})) = 0 ]; then | |
13 history -a; | |
14 fi | |
15 } | |
16 | |
17 prompt () | |
18 { | |
19 savehist | |
20 echo -ne '\033]0;'${HOSTNAME/-login/} ${PWD/$HOME/w\~}'\007' | |
21 } | |
22 | |
72 | 23 PATH=$PATH:$HOME/.local/bin:$HOME/bin |
24 | |
0 | 25 if [ "$PS1" ]; then |
26 echo "Singularity bash" 1>&2 | |
27 # don't put duplicate lines or lines starting with space in the history. | |
28 # See bash(1) for more options | |
29 export HISTCONTROL=ignoreboth | |
30 | |
31 # append to the history file, don't overwrite it | |
32 shopt -s histappend | |
33 | |
34 # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) | |
35 export HISTSIZE=3000 | |
36 export HISTFILESIZE=6000 | |
37 export HISTIGNORE='[ ]*:&:[fb]g:exit' | |
72 | 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 | |
0 | 53 fi |
54 | |
9
05820245a047
work around problem with PROMPT_COMMAND
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
7
diff
changeset
|
55 EDITOR=xemacs |
0 | 56 |
57 PATH=$PATH:$HOME/.local/bin:$HOME/bin | |
58 | |
59 HHOME=/home/dc007/dc007/$(whoami) | |
60 | |
9
05820245a047
work around problem with PROMPT_COMMAND
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
7
diff
changeset
|
61 export PATH EDITOR HHOME |