Mercurial > hg > cc > cirrus_shared
diff .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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.work_bashrc Wed May 20 17:21:34 2026 +0100 @@ -0,0 +1,27 @@ +# This .bashrc will work for our singularity containter, because that uses your +# work directory as its home directory for you + +if [ "$PS1" ]; then + # This is an interactive shell + 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 + +fi + +# EDITOR= Uncomment this and give it the name of your preferred editor +# emacs, nano and xemacs are available +# Let me know if you would like a different one installed
