43 lines
1.2 KiB
Plaintext
Executable File
43 lines
1.2 KiB
Plaintext
Executable File
#
|
|
# ~/.bashrc.kuba
|
|
#
|
|
|
|
# If not running interactively, don't do anything
|
|
[[ $- != *i* ]] && return
|
|
|
|
source_existing() {
|
|
if [ -f "$1" ]; then
|
|
source "$1"
|
|
fi
|
|
}
|
|
|
|
alias ls='ls --color=auto'
|
|
export KRB5_CONFIG=".etcfiles/krb5.conf"
|
|
export EDITOR="vim"
|
|
export CUPS_GSSSERVICENAME=HTTP
|
|
export PATH=$PATH:/home/kuba/bin
|
|
export PATH="$HOME/git/esp-open-sdk/xtensa-lx106-elf/bin/:$PATH"
|
|
|
|
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"
|
|
alias pip=pip3
|
|
alias python=python3
|
|
|
|
# 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
|
|
[ -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
|
|
|
|
if xhost >& /dev/null ; then
|
|
# X is running
|
|
xhost +local:kuba > /dev/null
|
|
fi
|