31 lines
848 B
Bash
31 lines
848 B
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
|
|
|
|
if [ -f /usr/share/git/completion/git-prompt.sh ]; then
|
|
source /usr/share/git/completion/git-prompt.sh
|
|
else
|
|
function __git_ps1() { echo ""; };
|
|
fi
|
|
|
|
[ -f $HOME/.bashrc.local ] && source $HOME/.bashrc.local
|
|
[ -f $HOME/.profile ] && source $HOME/.profile
|