changeset 4:0c43040ab265

for 2026 MSc
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Wed, 20 May 2026 17:21:34 +0100
parents 6c772ae7fce2
children 5072a23f9991
files .home_bashrc .work_bashrc
diffstat 2 files changed, 68 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /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
+
--- /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