modules: Add jfojt and trossi gpaw modules

Add gpaw-setups module
This commit is contained in:
2020-02-17 14:08:17 +01:00
parent 73c948b25c
commit 129748fd8c
5 changed files with 36 additions and 25 deletions

View File

@@ -6,9 +6,7 @@
[[ $- != *i* ]] && return
source_existing() {
if [ -f "$1" ]; then
source "$1"
fi
[ -f "$1" ] && source "$1"
}
alias ls='ls --color=auto'
@@ -29,12 +27,7 @@ source_existing ~/.bash_prompt.kuba
# Source lmod module setup
source_existing /usr/share/lmod/lmod/init/profile
[ -x "$(command -v module)" ] && module use "$HOME/.modules.kuba/"
if [ "$(hostname)" == "kubaDesktop" ] || [ "$(hostname)" == "kubaArch-Laptop" ]; then
GPAW_SETUP_BASE="/home/kuba/gpaw-setups/0.9.20000/"
export GPAW_SETUP_PATH="${GPAW_SETUP_BASE}gpaw-basis-pvalence-0.9.20000/:${GPAW_SETUP_BASE}gpaw-setups-0.9.20000/"
fi
[ -e /usr/share/lmod/lmod/init/profile ] && module use "$HOME/.modules.kuba/"
if xhost >& /dev/null ; then
# X is running