dotfiles/.bashrc
2020-05-20 11:28:48 +02:00

35 lines
1.2 KiB
Bash

export LIBVIRT_DEFAULT_URI="qemu:///system"
export HISTSIZE=-1
export HISTFILESIZE=-1
test -s ~/.alias && . ~/.alias || true
export PATH=~/.local/bin:"$PATH"
type go >/dev/null 2>&1 && export GOPATH=$(go env GOPATH) && export PATH="$PATH":$GOPATH/bin
# needed for pw function and gnupg.vim
GPG_TTY=$(tty)
export GPG_TTY
export PWHOME="$HOME/Nextcloud/passwords"
#make sure we only run one ssh-agent
if ! pgrep -u "$USER" ssh-agent > /dev/null; then
ssh-agent > "$XDG_RUNTIME_DIR/ssh-agent.env"
fi
if [[ ! "$SSH_AUTH_SOCK" ]]; then
eval "$(<"$XDG_RUNTIME_DIR/ssh-agent.env")"
fi
[[ -x "$(command -v kubectl)" ]] && source <(kubectl completion bash)
[[ -x "$(command -v helm)" ]] && source <(helm completion bash)
# Go Bullet Train settings
[[ -f "$HOME/go/bin/gbt" ]] && [[ -f "$HOME/.gbt.sh" ]] && source "$HOME/.gbt.sh"
[[ -f "$HOME/.functions.sh" ]] && source ~/.functions.sh
[[ -f "$HOME/Develop/sps/completion.sh" ]] && source ~/Develop/sps/completion.sh
[[ -f "$HOME/Develop/MyDot/completion.sh" ]] && source ~/Develop/MyDot/completion.sh
[[ "$(type -t dotf)" == "alias" ]] && [[ "$(type -t __git_complete)" == "function" ]] && __git_complete dotf _git
[[ "$(type -t _todo)" == "function" ]] && complete -F _todo t