dotfiles/.bashrc

32 lines
885 B
Bash
Raw Normal View History

2019-07-29 02:07:31 +02:00
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
export GIT_EDITOR=vim
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
export PATH=~/.env/python/bin:~/bin:$PATH
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