dotfiles

Obligatory dotfiles repo
git clone git://git.danielmoch.com/dotfiles.git
Log | Files | Refs

commit 0e480feb18905ddb52456218c1b4d0ab1be6bae9
parent ef1424678239a765a32261f9e717c741c5f3773d
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Sun, 14 Jan 2018 21:53:46 -0500

Bashrc: Use bright blue in PS1 in linux term

Diffstat:
M.bashrc | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/.bashrc b/.bashrc @@ -14,7 +14,14 @@ GIT_PS1_SHOWUNTRACKEDFILES=1 source "$HOME/.config/bash/git-prompt.sh" # Customize the prompt -export PS1='\[\033[34m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[m\]\W\[\033[31m\]$(__git_ps1 " (%s)")\[\033[m\]\$ ' +if [ x$TERM == xlinux ] +then + usercolor='\[\033[01;34m\]' +else + usercolor='\[\033[34m\]' +fi + +export PS1=$usercolor'\u\[\033[m\]@\[\033[32m\]\h:\[\033[m\]\W\[\033[31m\]$(__git_ps1 " (%s)")\[\033[m\]\$ ' # Configure Homebrew if command -v brew > /dev/null 2>&1