.dotfiles/.bashrc

30 lines
835 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
2019-12-26 12:52:34 +00:00
HISTFILE=$HOME/.cache/bash_history
2019-09-23 23:22:47 +00:00
# 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
2019-12-26 12:52:34 +00:00
[ -f $HOME/.config/bash/colours ] && source $HOME/.config/bash/colours
2019-09-23 23:22:47 +00:00
2019-12-19 20:42:54 +00:00
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
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
2019-12-20 01:56:06 +00:00
[ -f $HOME/.profile ] && source $HOME/.profile