dotfiles/home/.bash_env

62 lines
1.4 KiB
Bash

source ${HOME}/.cargo/env
export GOPATH=~/build/go
export PATH=~/bin/scripts:~/bin:/usr/local/bin:${PATH}
if [ -d /var/lib/snapd/snap/bin/code ]; then
export PATH="/var/lib/snapd/snap/bin/code:${PATH}"
fi
if [ -d ${KREW_ROOT:-$HOME/.krew}/bin ]; then
PATH="${KREW_ROOT:-${HOME}/.krew}/bin:${PATH}"
fi
if [ "$(id -u)" -eq "0" ]; then
if [ -d /opt/local/sbin ]; then
export PATH=/opt/local/sbin:${PATH}
fi
export PATH=/usr/local/sbin:${PATH}
fi
if [ -d ~/.npm-global/bin ]; then
export PATH=${PATH}:~/.npm-global/bin/
fi
if [ -d ${GOPATH}/bin ]; then
export PATH=${GOPATH}/bin:${PATH}
fi
# OS X stuff if availabe
# MacGPG2
if [ -d /usr/local/MacGPG2/bin/ ]; then
export PATH=/usr/local/MacGPG2/bin/:$PATH
fi
if type brew > /dev/null 2>&1; then
PATH=$(brew --prefix coreutils)/libexec/gnubin:${PATH}
fi
# Linux man-pages
if [ -d /opt/man-pages ]; then
export MANPATH=/opt/man-pages:${MANPATH}
fi
if [ -x /usr/local/bin/code-insiders ]; then
export EDITOR="/usr/local/bin/code-insiders -w"
else
export EDITOR=vim
fi
export RESTIC_REPOSITORY="sftp://172.23.157.2//srv/Data/Backup/Restic/Macbook"
export GCC_COLORS="error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01"
export DEBEMAIL="post@steffenvogel.de"
export DEBFULLNAME="Steffen Vogel"
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export GRC_BLOCKS_PATH=/usr/local/share/gnuradio/grc/blocks/