Created
March 6, 2009 00:01
-
-
Save rmanalan/74660 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
| # some more ls aliases | |
| alias ll='ls -l' | |
| alias la='ls -A' | |
| alias l='ls -CF' | |
| alias remote-print='ssh -L 9100:192.168.1.6:9100 root@manalang.dyndns.org' | |
| # Courtesy of http://ozmm.org/posts/git_bash_aliases.html | |
| alias gb='git branch -a -v' | |
| alias gs='git status' | |
| alias gd='git diff' | |
| alias gg='git gui &' | |
| alias gl='git log --name-status' | |
| alias ga='git add' | |
| alias gcommit='git commit -m' | |
| alias gp='git push' | |
| alias sudop='sudo env http_proxy=http://www-proxy.us.oracle.com/' | |
| alias f='open -a Finder $1' | |
| alias rr='touch tmp/restart.txt' | |
| alias proxyon='source ~/scripts/proxyon.sh' | |
| alias proxyoff='source ~/scripts/proxyoff.sh' | |
| alias vpnon='sudo vpnclient connect AmericasWest && proxyon' | |
| alias vpnoff='proxyoff && sudo vpnclient disconnect' | |
| alias von='eval ~/scripts/von' | |
| alias vim='/Applications/MacVim.app/Contents/MacOS/Vim' | |
| alias gvim='vim -g' | |
| alias sshp='ssh -o ProxyCommand "/opt/local/bin/corkscrew www-proxy.us.oracle.com 80 %h %p"' | |
| alias sshconnect="ssh appslab@connect.oraclecorp.com" | |
| alias sshapps3root="ssh root@appslab-3.us.oracle.com" | |
| alias sshapps3oracle="ssh oracle@appslab-3.us.oracle.com" | |
| alias sshapps3appslab="ssh appslab@appslab-3.us.oracle.com" | |
| alias sshapps2git="ssh git@appslab-2.us.oracle.com" | |
| alias sshapps2appslab="ssh appslab@appslab-2.us.oracle.com" | |
| alias sshmix1="ssh rimanala@mix01.oracle.com" | |
| alias sshmix2="ssh rimanala@mix02.oracle.com" | |
| alias sshmix3="ssh rimanala@mix03.oracle.com" | |
| alias vi='vim' | |
| # gc => git checkout master | |
| # gc bugs => git checkout bugs | |
| function gc { | |
| if [ -z "$1" ]; then | |
| git checkout master | |
| else | |
| git checkout $1 | |
| fi | |
| } | |
| function skill { | |
| ps ax | grep $1 | grep -v grep; | |
| kill -9 `ps ax | grep $1 | grep -v grep | awk '{print $1}'`; | |
| } | |
| function pgrep { | |
| ps ax | grep $1 | grep -v grep; | |
| } | |
| export PS1='[\w$(__git_ps1 "(%s)")] ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment