Mercurial > hg > cc > cirrus_shared
comparison .work_bashrc @ 4:0c43040ab265
for 2026 MSc
| author | Henry S. Thompson <ht@inf.ed.ac.uk> |
|---|---|
| date | Wed, 20 May 2026 17:21:34 +0100 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 3:6c772ae7fce2 | 4:0c43040ab265 |
|---|---|
| 1 # This .bashrc will work for our singularity containter, because that uses your | |
| 2 # work directory as its home directory for you | |
| 3 | |
| 4 if [ "$PS1" ]; then | |
| 5 # This is an interactive shell | |
| 6 echo "Singularity bash" 1>&2 | |
| 7 | |
| 8 # don't put duplicate lines or lines starting with space in the history. | |
| 9 # See bash(1) for more options | |
| 10 export HISTCONTROL=ignoreboth | |
| 11 | |
| 12 # append to the history file, don't overwrite it | |
| 13 shopt -s histappend | |
| 14 | |
| 15 # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) | |
| 16 export HISTSIZE=3000 | |
| 17 export HISTFILESIZE=6000 | |
| 18 export HISTIGNORE='[ ]*:&:[fb]g:exit' | |
| 19 | |
| 20 # fix $W -> \$W after tab completion | |
| 21 shopt -u progcomp | |
| 22 | |
| 23 fi | |
| 24 | |
| 25 # EDITOR= Uncomment this and give it the name of your preferred editor | |
| 26 # emacs, nano and xemacs are available | |
| 27 # Let me know if you would like a different one installed |
