dotfiles/.bashrc

42 lines
1.2 KiB
Bash
Raw Normal View History

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_branch git)${BPurple}\$(parse_branch fossil)${Off}\n-$ "
2019-07-29 02:07:31 +02:00
export PYTHONDONTWRITEBYTECODE=1
export PYTHONUSERBASE=~/.env/python
2019-07-31 21:18:12 +02:00
export PATH=$PYTHONUSERBASE/bin:$HOME/bin:$PATH:$HOME/.cargo/bin/
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
2019-07-31 21:18:12 +02:00
# Rust src path used for library tagging
2020-11-07 04:52:00 +01:00
export RUST_SRC_PATH=$(rustc --print sysroot)/lib/rustlib/src/rust/library
2019-11-21 23:36:00 +01:00
eval "$(stack --bash-completion-script stack)"