dotfiles/.bashrc

42 lines
1.2 KiB
Bash

#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
export EDITOR=vim
export GIT_EDITOR=$EDITOR
export SYSTEMD_EDITOR=$EDITOR
export MANWIDTH=80
source ~/.aliases
source ~/.bashcolors
source ~/.functions
export PS1="${Yellow}\d \A ${Off}${Cyan}\u@\h: ${Off}\w ${Green}\$(parse_branch git)${BPurple}\$(parse_branch fossil)${Off}\n-$ "
export PYTHONDONTWRITEBYTECODE=1
export PYTHONUSERBASE=~/.env/python
export PATH=$PYTHONUSERBASE/bin:$HOME/bin:$PATH:$HOME/.cargo/bin/
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
export GPG_TTY=$(tty)
gpg-connect-agent updatestartuptty /bye >/dev/null
# Rust src path used for library tagging
export RUST_SRC_PATH=$(rustc --print sysroot)/lib/rustlib/src/rust/library
eval "$(stack --bash-completion-script stack)"