Skip to content

Instantly share code, notes, and snippets.

@timnovinger
Created October 7, 2009 16:14
Show Gist options
  • Save timnovinger/204169 to your computer and use it in GitHub Desktop.
Save timnovinger/204169 to your computer and use it in GitHub Desktop.
My .bashrc file
################
# SYSTEM PATHS #
################
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"
################
# COLOR CODING #
################
# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color) color_prompt=yes;;
esac
# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes
if [ -n "$force_color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=yes
else
color_prompt=
fi
fi
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt
export CLICOLOR=1
#export LSCOLORS=ExFxCxDxBxegedabagacad
PS1="\h:\w\$"
#################
# ENV VARIABLES #
#################
#export TWITTER_USR=
#export TWITTER_PWD=
###################
# GENERAL ALIASES #
###################
alias ll='ls -alFhG'
alias ls='ls -l'
alias www='cd ~/Sites'
alias proj='cd ~/Projects'
alias vmware='ssh -X -f -q sqm@sqm-vm-server bin/start-vmware-console.sh'
alias dev='ssh app@dev-server'
###############
# GIT ALIASES #
###############
alias gs='git status'
alias gc='git commit'
alias gca='git commit -a'
alias ga='git add'
alias grma='git rm $(git ls-files --deleted)'
alias gb='git branch'
alias gf='git fetch'
alias gco='git checkout'
alias gpush='git push origin'
alias gpull='git pull origin'
alias gm='git merge'
########################
# RUBY + RAILS ALIASES #
########################
alias sc='script/console'
alias sg='script/generate'
alias ss='script/server'
alias a='autotest -rails'
alias tlog='tail -f log/development.log'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment