50 lines
1.2 KiB
Plaintext
Executable File
50 lines
1.2 KiB
Plaintext
Executable File
#
|
|
# ~/.bashrc.kuba
|
|
#
|
|
|
|
# If not running interactively, don't do anything
|
|
[[ $- != *i* ]] && return
|
|
|
|
source_existing() {
|
|
[ -f "$1" ] && source "$1"
|
|
}
|
|
|
|
alias ls='ls --color=auto'
|
|
export KRB5_CONFIG=".etcfiles/krb5.conf"
|
|
export EDITOR="vim"
|
|
export CUPS_GSSSERVICENAME=HTTP
|
|
|
|
alias dotfiles="/usr/bin/git --git-dir=$HOME/.dotfiles.git --work-tree=$HOME"
|
|
alias dvim="GIT_WORK_TREE='/home/kuba' GIT_DIR='/home/kuba/.dotfiles.git/' vim"
|
|
|
|
# Source git prompt
|
|
source_existing ~/scripts/git-prompt.sh
|
|
source_existing ~/.bash_prompt.kuba
|
|
|
|
# Source lmod module setup
|
|
source_existing /usr/share/lmod/lmod/init/profile
|
|
|
|
case $(hostname) in
|
|
vera* )
|
|
module use "$HOME/.modules.kuba/"
|
|
module load Python/3.7.4
|
|
module load clusterappl
|
|
module load gpaw/Vera/20.1.0
|
|
;;
|
|
tetralith* )
|
|
module use "$HOME/.modules.kuba/"
|
|
module load Python/3.6.3-anaconda-5.0.1-nsc1
|
|
module load clusterappl
|
|
;;
|
|
* )
|
|
if [ -e /usr/share/lmod/lmod/init/profile ]; then
|
|
module use "$HOME/.modules.kuba/"
|
|
module load python-wrap/3
|
|
fi
|
|
esac
|
|
|
|
if xhost >& /dev/null ; then
|
|
# X is running
|
|
xhost +local:kuba > /dev/null
|
|
fi
|