.dotfiles/.bashrc
2019-12-19 21:42:54 +01:00

45 lines
1 KiB
Bash

# ~/.bashrc: executed by bash(1) for non-login shells.
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# ignoredups and ignorespace
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
if [ -f ~/.bash_colours ]; then
source ~/.bash_colours
fi
PS1="$PURPLE\u$nc@$BLUE\H$nc:$GREEN\w$YELLOW"'$(__git_ps1)'"$nc\\n$GREEN\$$nc "
export PATH=/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin:~/bin
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
gpgconf --launch gpg-agent
if [ -f /usr/share/git/completion/git-prompt.sh ]; then
source /usr/share/git/completion/git-prompt.sh
else
function __git_ps1() { echo ""; };
fi
if [ -f ~/.bash_aliases ]; then
source ~/.bash_aliases
fi
if [ -f ~/.bash_aliases.local ]; then
source ~/.bash_aliases.local
fi
if [ -f ~/.bashrc.local ]; then
source ~/.bashrc.local
fi