commit 632bad68240228f04694ada353f4d81d52614b3e
parent d622733df2d4b215a3deb736c5d4f1f36196f089
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Wed, 20 May 2020 13:42:01 +0200
Source grendel module script if present
Diffstat:
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/.profile b/.profile
@@ -163,9 +163,19 @@ addtopath() {
done
}
+sourcepath() {
+ for p in "$@"; do
+ if [ -f "$p" ]; then
+ . "$p"
+ fi
+ done
+}
+
addtopath /usr/local/cuda/bin /usr/local/gcc-8.3.0/bin
addtopath ~/code/pism-stable-install/bin
addtopath ~/.local/bin
+sourcepath /com/Modules/default/init/sh
+
ENV=$HOME/.kshrc
export PATH HOME TERM ENV MANPATH