dotfiles/home/.bash_env
2015-10-18 12:23:39 +02:00

47 lines
1.2 KiB
Bash

export PATH=~/bin/scripts:~/bin:/usr/local/bin:$PATH
# We are on a Macports system
if [ -d /opt/local ]; then
export PATH=/opt/local/bin:$PATH
export PATH=/opt/local/Library/Frameworks/Python.framework/Versions/Current/bin/:$PATH
export PATH=/opt/local/libexec/gnubin:$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 /usr/local/MacGPG2/bin/ ]; then
export PATH=/usr/local/MacGPG2/bin/:$PATH
fi
if [ -d /opt/local/share/man ]; then
export MANPATH=/opt/local/share/man:$MANPATH
fi
if [ -r ~/.gpg-agent-info ]; then
source ~/.gpg-agent-info
export GPG_AGENT_INFO
export SSH_AUTH_SOCK
export SSH_AGENT_PID
fi
function aws {
local PASS=$(pass providers/aws)
local AWS=$(which aws)
# Start original aws executable with short-lived keys
AWS_ACCESS_KEY_ID=$(sed -En 's/^Access-Key: (.*)/\1/p' <<< "$PASS") \
AWS_SECRET_ACCESS_KEY=$(sed -En 's/^Secret-Key: (.*)/\1/p' <<< "$PASS") $AWS $@
}
export GCC_COLORS="error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01"
export EDITOR=vim
export DEBEMAIL="post@steffenvogel.de"
export DEBFULLNAME="Steffen Vogel"