-
-
Save colindensem/228833 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/opt/subversion/bin/:$PATH" | |
# command prompt | |
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
function proml { | |
local BLUE="\[\033[0;36m\]" | |
local RED="\[\033[0;31m\]" | |
local LIGHT_RED="\[\033[1;31m\]" | |
local GREEN="\[\033[0;32m\]" | |
local LIGHT_GREEN="\[\033[1;32m\]" | |
local WHITE="\[\033[1;37m\]" | |
local LIGHT_GRAY="\[\033[0;37m\]" | |
case $TERM in | |
xterm*) | |
TITLEBAR='\[\033]0;\u@\h:\w\007\]' | |
;; | |
*) | |
TITLEBAR="" | |
;; | |
esac | |
local RUBYVER='ruby -v | cut -d \ -f 2' | |
PS1="${TITLEBAR}\ | |
$LIGHT_GRAT[$BLUE\$($RUBYVER)$LIGHT_GRAY]\ | |
$LIGHT_GRAY[\$(date +%H:%M)$LIGHT_GRAY]\ | |
$LIGHT_GRAY[\u@\h:\w$GREEN\$(parse_git_branch)$LIGHT_GRAY]\ | |
$LIGHT_GRAY\$ " | |
PS2='> ' | |
PS4='+ ' | |
} | |
proml | |
export HISTCONTROL=ignoredups | |
export HISTCONTROL=ignoreboth | |
export CLICOLOR=1 | |
export LSCOLORS=DxGxcxdxCxcgcdabagacad | |
export EDITOR='mate -w' | |
export GIT_EDITOR='mate -w' | |
export PATH=$PATH:/Users/mtkd/.gem/ruby/1.8/bin | |
export ARCHFLAGS='-arch x86_64' | |
#Secure | |
alias lock='/System/Library/CoreServices/"Menu Extras"/User.menu/Contents/Resources/CGSession -suspend' | |
#General | |
alias ls='ls -aslFAh' | |
alias f='find . -name' | |
alias ..="cd .." | |
alias cls="clear" | |
alias wget="curl -O" | |
# Rails | |
alias l='rake db:fixtures:load' | |
alias s='sh ./setup.sh' | |
alias rr='rake routes > log/route.txt' | |
alias rt='rake test' | |
alias rtu='rake test:units' | |
# Git | |
alias ga='git add .' | |
alias gc='git commit -a' | |
alias gamend='git commit --amend' | |
alias gs='git status' | |
alias push='git push' | |
alias pull='git pull origin master' | |
# Grep | |
alias gr='grep -inr' | |
alias grc='grep -incrl' | |
alias h='echo l:load fixtures, s:setup.sh, ga, gc, gs, gr: grep -inr, grc: grep -incrl, rt: rake test, rtu' | |
# enable programmable completion features (you don't need to enable | |
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile | |
# sources /etc/bash.bashrc). | |
if [ -f /etc/bash_completion ]; then | |
. /etc/bash_completion | |
fi | |
if [ -s ~/.rvm/scripts/rvm ] ; then source ~/.rvm/scripts/rvm ; fi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment