diff --git a/.bashrc b/.bashrc index 4dacfba..05bdc86 100644 --- a/.bashrc +++ b/.bashrc @@ -10,8 +10,15 @@ HISTCONTROL=ignoreboth # don't put duplicate lines or lines starting with space HISTSIZE=1000 HISTFILESIZE=2000 -# PS1='[\u@\h \W]\$ ' -PS1='\[\033[01;35m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' +source /usr/share/bash-completion/completions/git +source /usr/share/git/completion/git-prompt.sh + +PS1= +PS1="$PS1"'\[\033[01;35m\]\u@\h' # user@host +PS1="$PS1"'\[\033[00m\]:' # seperator +PS1="$PS1"'\[\033[01;34m\]\w' # working directory +PS1="$PS1"'\[\033[01;93m\]$(__git_ps1)' # github branch +PS1="$PS1"'\[\033[00m\]\$ ' # shell sign export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' # coloured GCC warnings and errors @@ -39,7 +46,6 @@ alias mv='mv -i' alias py3='python3' alias hgit="git --git-dir=$HOME/.home-conf.git --work-tree=$HOME" -source /usr/share/bash-completion/completions/git __git_complete hgit __git_main # opt out of dotnet's telenetry