tejohnso.github.com

tejohnso


.bashrc

#
# ~/.bashrc
#

# If not running interactively, don't do anything
[[ $- != *i* ]] && return
export PATH=$PATH:$(ruby -rubygems -e "puts Gem.user_dir")/bin
export MONGOHQ_URL=[removed]
alias ls='ls --color=auto'
alias vi='/usr/bin/vim'
alias la='ls -al --color=auto'
set -o vi
# PS1='[\u@\h \W]\$ ' default prompt disabled
# set the prompt to show user, path, and the time in the top right corner of the terminal
PS1="\[\033[s\]\[\033[1;\$((COLUMNS-4))f\]\$(date +%H:%M)\[\033[u\]\[\e[0;32m\]\u\[\e[m\]\[\e[0;36m\] \w\[\e[m\] \[\e[0;93m\]\$\[\e[m\] "

#Prompt statement 1 (PS1) decoded
#\[\033[s\]    store cursor posn
#\[\033[1;\$((COLUMNS-4))f\]   move cursor position 
#\$(date +%H:%H)   output date
#\[\033[u\]    restore cursor posn
#\e[0;32m\]    open set color green
#\u            put user
#\[\e[m\]      close color set
#\[\e[0;36m\]  open set color yellow
# \w           put directory
#\[\e[m\]      close color set
# \[\e[0;93m\] open set color yellow
#\$            put prompt
#\[e\e[m\]     close color set