2021-11-13 14:06:43 +00:00
|
|
|
#!/bin/bash
|
2020-03-30 06:45:14 +00:00
|
|
|
export LIBVIRT_DEFAULT_URI="qemu:///system"
|
|
|
|
export HISTSIZE=-1
|
|
|
|
export HISTFILESIZE=-1
|
2020-05-25 15:54:31 +00:00
|
|
|
export EDITOR="vim"
|
2020-03-30 06:45:14 +00:00
|
|
|
|
2021-11-14 10:41:50 +00:00
|
|
|
# used by systemd user unit file ssh-agent in ~/.config/systemd/user/ssh-agent.service
|
|
|
|
#[Unit]
|
|
|
|
#Description=SSH key agent
|
|
|
|
#
|
|
|
|
#[Service]
|
|
|
|
#Type=simple
|
|
|
|
#Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
|
|
|
|
#ExecStart=/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK
|
|
|
|
#
|
|
|
|
#[Install]
|
|
|
|
#WantedBy=default.target
|
|
|
|
#
|
|
|
|
#Also add "AddKeysToAgent yes" to ~/.ssh/config
|
|
|
|
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
|
|
|
|
|
2020-03-30 06:45:14 +00:00
|
|
|
test -s ~/.alias && . ~/.alias || true
|
2021-01-21 10:15:59 +00:00
|
|
|
export PATH=~/bin:~/.local/bin:"$PATH"
|
2020-05-11 06:43:03 +00:00
|
|
|
type go >/dev/null 2>&1 && export GOPATH=$(go env GOPATH) && export PATH="$PATH":$GOPATH/bin
|
2020-03-30 06:45:14 +00:00
|
|
|
|
|
|
|
# needed for pw function and gnupg.vim
|
|
|
|
GPG_TTY=$(tty)
|
|
|
|
export GPG_TTY
|
|
|
|
export PWHOME="$HOME/Nextcloud/passwords"
|
|
|
|
|
|
|
|
|
2021-11-13 14:06:43 +00:00
|
|
|
if [[ -d "$HOME"/.bash_completions.d ]];then
|
|
|
|
for file in "$HOME"/.bash_completions.d/*.sh;do
|
|
|
|
source "$file"
|
|
|
|
done
|
|
|
|
fi
|
2020-03-30 06:45:14 +00:00
|
|
|
|
2021-11-11 15:27:24 +00:00
|
|
|
# PS1 Prompt
|
2021-11-12 09:24:56 +00:00
|
|
|
[[ -f "$HOME/.functions/ps1.sh" ]] && source "$HOME/.functions/ps1.sh"
|
2020-03-30 06:45:14 +00:00
|
|
|
|
|
|
|
|
2021-11-12 09:24:56 +00:00
|
|
|
[[ -d "$HOME/.functions" ]] && for f in ~/.functions/*.sh; do source $f; done
|
|
|
|
|
2020-04-30 06:11:18 +00:00
|
|
|
|
2021-01-07 15:32:04 +00:00
|
|
|
[[ -d "$HOME/.rbenv/bin" ]] && export PATH="$HOME/.rbenv/bin:$PATH" && eval "$(rbenv init -)"
|
|
|
|
|
2020-08-02 08:27:37 +00:00
|
|
|
#exit with no error
|
|
|
|
/bin/true
|