Created
February 16, 2011 17:18
-
-
Save pupca/829754 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 CLICOLOR=1 | |
export LSCOLORS=CxFxExDxBxegedabagacad | |
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/' | |
} | |
function proml { | |
local WHITE="\[\033[40;0;37m\]" | |
local LIGHT_GRAY="\[\033[47;1;30m\]" | |
case $TERM in | |
xterm*) | |
TITLEBAR='\[\033]0;\u@\h:\w\007\]' | |
;; | |
*) | |
TITLEBAR="" | |
;; | |
esac | |
PS1="${TITLEBAR}\ | |
\u@\h:\w $LIGHT_GRAY\$(parse_git_branch)\ | |
$WHITE\$ " | |
PS2='> ' | |
PS4='+ ' | |
} | |
proml | |
export PATH=/usr/local/mysql/bin:/opt/local/bin:$PATH | |
alias rorcore="mate app/controllers app/helpers app/models app/views config config/locales features db lib public vendor/plugins spec" | |
alias ss="./script/server" | |
alias sc="./script/console" | |
alias migrate="rake db:migrate" | |
alias rollback="rake db:rollback" | |
alias gup="git checkout $1 && git rebase master" | |
alias mdiff="git diff | mate" | |
alias gitx="/Applications/GitX.app/Contents/Resources/gitx" | |
alias devel="ssh [email protected]" | |
alias devel_restart="ssh [email protected] '/home/tester/cron/setup netina'" | |
alias restart_admin="/Users/Pupca/Railsworx/restart_admin.sh"export PATH=/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/libexec | |
alias rajesh="ssh [email protected]" | |
alias leonard="ssh [email protected]" | |
alias pupca="ssh [email protected]" | |
alias rpupca="ssh [email protected]" | |
alias home="ssh [email protected]" | |
alias slevomor="ssh [email protected]" | |
# Open man page in preview | |
pman () { | |
man -t "${1}" | open -f -a /Applications/Preview.app | |
} | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment