Mercurial > hg > cc > cirrus_work
annotate .bashrc @ 378:e44d214699be plus
color ls
| author | Henry S. Thompson <ht@inf.ed.ac.uk> |
|---|---|
| date | Thu, 11 Jun 2026 21:09:38 +0100 |
| parents | 567ba6010658 |
| children |
| 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 | |
| 378 | 23 alias ls="ls -F --color=auto" |
| 24 | |
| 72 | 25 PATH=$PATH:$HOME/.local/bin:$HOME/bin |
| 26 | |
| 0 | 27 if [ "$PS1" ]; then |
| 28 echo "Singularity bash" 1>&2 | |
| 29 # don't put duplicate lines or lines starting with space in the history. | |
| 30 # See bash(1) for more options | |
| 31 export HISTCONTROL=ignoreboth | |
| 32 | |
| 33 # append to the history file, don't overwrite it | |
| 34 shopt -s histappend | |
| 35 | |
| 36 # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) | |
| 37 export HISTSIZE=3000 | |
| 38 export HISTFILESIZE=6000 | |
| 39 export HISTIGNORE='[ ]*:&:[fb]g:exit' | |
| 72 | 40 |
| 41 # fix $W -> \$W after tab completion | |
| 42 shopt -u progcomp | |
| 43 | |
| 0 | 44 fi |
| 45 | |
|
96
e1a05ead2b1c
try to do csing correctly on compute nodes
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
72
diff
changeset
|
46 |
|
9
05820245a047
work around problem with PROMPT_COMMAND
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
7
diff
changeset
|
47 EDITOR=xemacs |
| 0 | 48 |
|
96
e1a05ead2b1c
try to do csing correctly on compute nodes
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
72
diff
changeset
|
49 |
| 237 | 50 # csing no longer needed, probably |
| 51 #if [ -d /work/y07/shared ] | |
| 52 #then | |
| 53 # . $HOME/.csing_init | |
| 54 #fi | |
|
96
e1a05ead2b1c
try to do csing correctly on compute nodes
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
72
diff
changeset
|
55 |
|
e1a05ead2b1c
try to do csing correctly on compute nodes
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
72
diff
changeset
|
56 |
| 0 | 57 |
| 58 HHOME=/home/dc007/dc007/$(whoami) | |
| 59 | |
|
9
05820245a047
work around problem with PROMPT_COMMAND
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
7
diff
changeset
|
60 export PATH EDITOR HHOME |
