Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 9c5c8dbb89
Fetching contributors…

Cannot retrieve contributors at this time

67 lines (53 sloc) 1.869 kB
# general shortcuts
alias c='cd '
alias mv='mv -i'
alias v='vmstat'
alias md=mkdir
# Need to do this so you use backspace in screen...I have no idea why
alias screen='TERM=screen screen'
# listing files
alias l='ls -lh'
alias ltr='ls -ltr'
alias lth='l -t|head'
alias lh='ls -Shl | less'
alias tf='tail -f -n 100'
alias t500='tail -n 500'
alias t1000='tail -n 1000'
alias t2000='tail -n 2000'
# Rails
alias be='bundle exec'
alias ber='bundle exec rake'
alias b='bundle exec rake'
# editing shortcuts
alias m='mvim'
alias erc='e /etc/bashrc'
alias newrc='. /etc/bashrc'
alias rsync_nosvn="rsync --exclude=.svn -r "
alias rsync_novc="rsync --exclude=.svn --exclude=.git -r "
alias sourceit='. ~/src/scripts/profile.d/00_startup.sh'
# grep for a process
function psg {
FIRST=`echo $1 | sed -e 's/^\(.\).*/\1/'`
REST=`echo $1 | sed -e 's/^.\(.*\)/\1/'`
ps aux | grep "[$FIRST]$REST"
}
# Mac style apache control
# TODO init this style of aliases for darwin arch
# alias htstart='sudo /System/Library/StartupItems/Apache/Apache start'
# alias htrestart='sudo /System/Library/StartupItems/Apache/Apache restart'
# alias htstop='sudo /System/Library/StartupItems/Apache/Apache stop'
# Debian style apache control
alias htreload='sudo /etc/init.d/apache2 reload'
alias htrestart='sudo /etc/init.d/apache2 restart'
alias htstop='sudo /etc/init.d/apache2 stop'
alias cycle_passenger='touch tmp/restart.txt'
# top level folder shortcuts
alias src='cd ~/src'
alias docs='cd ~/documents'
alias scripts='cd ~/src/scripts'
alias h?="history | grep "
# display battery info on your Mac
# see http://blog.justingreer.com/post/45839440/a-tale-of-two-batteries
alias battery='ioreg -w0 -l | grep Capacity | cut -d " " -f 17-50'
# What is my IP address?
alias ip="curl -L -s --max-time 10 http://ip.appspot.com | egrep -o -m 1 '([[:digit:]]{1,3}\.){3}[[:digit:]]{1,3}'"
Jump to Line
Something went wrong with that request. Please try again.