dotfiles/.bashrc
Jonas Forsberg 99e4665f63
.
2021-11-12 14:44:39 +01:00

37 lines
1.0 KiB
Bash

export LIBVIRT_DEFAULT_URI="qemu:///system"
export HISTSIZE=-1
export HISTFILESIZE=-1
export EDITOR="vim"
test -s ~/.alias && . ~/.alias || true
export PATH=~/bin:~/.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)
# PS1 Prompt
[[ -f "$HOME/.functions/ps1.sh" ]] && source "$HOME/.functions/ps1.sh"
[[ -d "$HOME/.functions" ]] && for f in ~/.functions/*.sh; do source $f; done
[[ -d "$HOME/.rbenv/bin" ]] && export PATH="$HOME/.rbenv/bin:$PATH" && eval "$(rbenv init -)"
#exit with no error
/bin/true