# HG changeset patch # User Henry S. Thompson # Date 1779294094 -3600 # Node ID 0c43040ab265c025f245673d45c96bc68f835786 # Parent 6c772ae7fce2962aa2dc7a6994b12e217520ee3d for 2026 MSc diff -r 6c772ae7fce2 -r 0c43040ab265 .home_bashrc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.home_bashrc Wed May 20 17:21:34 2026 +0100 @@ -0,0 +1,41 @@ +# .bashrc + +# Source global definitions +if [ -f /etc/bashrc ]; then + source /etc/bashrc +fi + +# Source our shared helpful bits +source /work/dc007/dc007/shared/.bash_extras + +if [ "$PS1" ]; then + # This is an interactive shell + echo "Vanilla bashrc" 1>&2 + + # 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 +# vi, ed and emacs are available + +# Uncomment what follows if you're ready to start using tmux + +# if [ -z "$TERMINFO" ] +# then +# export TERMINFO=/usr/share/terminfo +# # needed to allow tmux to work +# fi + +# module load tmux + diff -r 6c772ae7fce2 -r 0c43040ab265 .work_bashrc --- /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