44 lines
1.2 KiB
Bash
44 lines
1.2 KiB
Bash
#!/bin/bash
|
|
export LIBVIRT_DEFAULT_URI="qemu:///system"
|
|
export HISTSIZE=-1
|
|
export HISTFILESIZE=-1
|
|
export EDITOR="vim"
|
|
|
|
# used by systemd user unit file ssh-agent in ~/.config/systemd/user/ssh-agent.service
|
|
#Also add "AddKeysToAgent yes" to ~/.ssh/config
|
|
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
|
|
|
|
# shellcheck disable=2015
|
|
# shellcheck disable=1090
|
|
test -s ~/.alias && . ~/.alias || true
|
|
# shellcheck disable=1090
|
|
export PATH=~/bin:~/.local/bin:"$PATH"
|
|
# shellcheck disable=2155
|
|
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
|
|
|
|
if [[ -d "$HOME"/.bash_completions.d ]];then
|
|
for file in "$HOME"/.bash_completions.d/*.sh;do
|
|
# shellcheck disable=1090
|
|
source "$file"
|
|
done
|
|
fi
|
|
|
|
# PS1 Prompt
|
|
# shellcheck disable=1090
|
|
[[ -f "$HOME/.functions/ps1.sh" ]] && source "$HOME/.functions/ps1.sh"
|
|
|
|
# shellcheck disable=1090
|
|
[[ -d "$HOME/.functions" ]] && for f in ~/.functions/*.sh; do source "$f"; done
|
|
|
|
# shellcheck disable=1090
|
|
[[ -d "$HOME/.rbenv/bin" ]] && export PATH="$HOME/.rbenv/bin:$PATH" && eval "$(rbenv init -)"
|
|
|
|
[[ "$(hostname)" != "exsilio" ]] && export PS1_COLOR_HOSTNAME="\[\033[0;33m\]"
|
|
|
|
#exit with no error
|
|
/bin/true
|