.dotfiles/.bashrc

40 lines
970 B
Bash
Raw Normal View History

2019-09-23 23:22:47 +00:00
# ~/.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
2019-09-23 23:22:47 +00:00
if [ -f /usr/share/git/completion/git-prompt.sh ]; then
source /usr/share/git/completion/git-prompt.sh
2019-09-23 23:32:18 +00:00
else
function __git_ps1() { echo ""; };
2019-09-23 23:22:47 +00:00
fi
if [ -f ~/.bash_aliases ]; then
source ~/.bash_aliases
fi
if [ -f ~/.bash_aliases.local ]; then
source ~/.bash_aliases.local
fi
2019-10-03 11:41:14 +00:00
PS1="$PURPLE\u$nc@$BLUE\H$nc:$GREEN\w$YELLOW"'$(__git_ps1)'"$nc\\n$GREEN\$$nc "
2019-09-23 23:22:47 +00:00
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