Skip to content

Commit

Permalink
One (colourful) prompt to rule them all
Browse files Browse the repository at this point in the history
  • Loading branch information
rgulewich committed May 26, 2015
1 parent 311dbee commit d25e6f6
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ shopt -s cdspell
shopt -s histappend
export PROMPT_COMMAND="history -a"

RED="\[\033[0;31m\]"
YELLOW="\[\033[0;33m\]"
GREEN="\[\033[0;32m\]"
BLUE="\[\033[0;34m\]"

source_it $HOME/.profile.d/git-completion.bash

## Mac
Expand All @@ -37,7 +32,6 @@ if [[ $OS == "Darwin" ]] ; then
# Make things colourful:
export CLICOLOR=1
export GREP_OPTIONS='--color=auto'
PSCOLOR=$GREEN
# Tell tmux we have 256 colours available
alias tmux="tmux -2"
add_path /usr/local/node/bin
Expand All @@ -61,17 +55,12 @@ if [[ $OS == "SunOS" ]] ; then
add_path /opt/local/gcc34/bin
add_path /opt/local/bin
zone=$(zonename)
if [ $zone == "global" ]; then
PSCOLOR=$RED
else
PSCOLOR=$BLUE
fi
source_it /etc/bash/bash_completion
fi

## Common

PS1="\[\033[G\]\[\e]0;\u@\h: \w\a\]$PSCOLOR\u@\h:\w$YELLOW"'$(__git_ps1 " (%s)")'" $PSCOLOR\$\[\033[00m\] "
PS1=$'\\[\E[1m\E[38;5;25m\\]\\u@\\h\\[\E[m\017\\]\\[\E[1m\E[38;5;237m\\]:\\[\E[m\017\\]\\[\E[1m\E[38;5;22m\\]\\w\\[\E[m\017\\]\\[\E[1m\E[38;5;172m\\]$(__git_ps1 " (%s)") \\[\E[m\017\\]\\[\E[1m\E[38;5;237m\\]$\\[\E[m\017\\] '
alias less='less -R'
alias date-for-date='echo "# Run the following on target machine to set to same date as here." && echo -n "date " && date -u "+%m%d%H%M%Y.%S"'

Expand Down

0 comments on commit d25e6f6

Please sign in to comment.