dotfiles/home/.bash_env

84 lines
2.1 KiB
Bash

export GPG_TTY=$(tty)
unset SSH_AGENT_PID
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
fi
export GOPATH=~/build/go
export PATH=~/bin/scripts:~/bin:/usr/local/bin:~/.krew/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
source ${HOME}/.cargo/env
# OS X stuff if availabe
if type brew > /dev/null 2>&1; then
#eval $(brew shellenv)
#export PATH="$(brew --prefix coreutils)/libexec/gnubin:${PATH}"
export HOMEBREW_PREFIX="/usr/local";
export HOMEBREW_CELLAR="/usr/local/Cellar";
export HOMEBREW_REPOSITORY="/usr/local/Homebrew";
export PATH="/usr/local/bin:/usr/local/sbin${PATH+:$PATH}";
export MANPATH="/usr/local/share/man${MANPATH+:$MANPATH}:";
export INFOPATH="/usr/local/share/info${INFOPATH+:$INFOPATH}";
export PATH="/usr/local/opt/coreutils/libexec/gnubin:${PATH}"
fi
# MacGPG2
if [ -d /usr/local/MacGPG2/bin/ ]; then
export PATH=/usr/local/MacGPG2/bin/:$PATH
fi
# Linux man-pages
export MANPATH=~/.homesick/repos/dotfiles/man:/opt/man-pages:${MANPATH}
if type code > /dev/null 2>&1; then
export EDITOR="code -w"
else
export EDITOR=vim
fi
export RESTIC_REPOSITORY="s3:http://moon.0l.de:9002/cam"
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/
export CALICO_DATASTORE_TYPE=kubernetes
export CALICO_KUBECONFIG=~/.kube/config.d/nulll
function join_by { local IFS="$1"; shift; echo "$*"; }
export KUBECONFIG=$(join_by : $(ls ~/.kube/config{.d/*,}))