2019-07-29 02:07:31 +02:00
|
|
|
#
|
|
|
|
# ~/.bashrc
|
|
|
|
#
|
|
|
|
|
|
|
|
# If not running interactively, don't do anything
|
|
|
|
[[ $- != *i* ]] && return
|
|
|
|
|
2019-07-29 16:47:03 +02:00
|
|
|
export EDITOR=vim
|
|
|
|
export GIT_EDITOR=$EDITOR
|
|
|
|
export SYSTEMD_EDITOR=$EDITOR
|
2019-07-31 00:14:15 +02:00
|
|
|
export MANWIDTH=80
|
2019-07-29 02:07:31 +02:00
|
|
|
|
|
|
|
source ~/.aliases
|
|
|
|
source ~/.bashcolors
|
|
|
|
source ~/.functions
|
|
|
|
|
|
|
|
export PS1="${Yellow}\d \A ${Off}${Cyan}\u@\h: ${Off}\w ${Green}\$(parse_git_branch)${BPurple}\$(parse_fossil_branch)${Off}\n-$ "
|
|
|
|
|
|
|
|
export PYTHONDONTWRITEBYTECODE=1
|
|
|
|
export PYTHONUSERBASE=~/.env/python
|
2019-07-31 00:33:16 +02:00
|
|
|
export PATH=$PYTHONUSERBASE/bin:$HOME/bin:$PATH
|
2019-07-29 02:07:31 +02:00
|
|
|
|
|
|
|
export HISTCONTROL=ignoredups:erasedups # Avoid duplicates
|
|
|
|
export HISTSIZE=100000000 # big big history
|
|
|
|
export HISTFILESIZE=100000000 # big big history
|
|
|
|
shopt -s histappend # append to history, don't overwrite
|
|
|
|
|
|
|
|
export LIBVIRT_DEFAULT_URI='qemu:///system'
|
|
|
|
|
|
|
|
# Set SSH to use gpg-agent
|
|
|
|
unset SSH_AGENT_PID
|
|
|
|
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
|
|
|
|
export SSH_AUTH_SOCK="/run/user/$UID/gnupg/S.gpg-agent.ssh"
|
|
|
|
fi
|
2019-07-29 18:10:44 +02:00
|
|
|
export GPG_TTY=$(tty)
|
|
|
|
gpg-connect-agent updatestartuptty /bye >/dev/null
|