forked from radar/dot-files
-
Notifications
You must be signed in to change notification settings - Fork 2
/
bash_aliases
45 lines (36 loc) · 1.41 KB
/
bash_aliases
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
alias colorslist="set | egrep 'COLOR_\w*'" # lists all the colors
# UNIX stuff
alias h='history|g'
alias ls='ls -G'
alias ll='ls -lah'
alias ..='cd ..;' # can then do .. .. .. to move up multiple directories.
alias ...='.. ..'
alias g='grep -i' #case insensitive grep
alias f='find . -iname'
alias ducks='du -cks * | sort -rn|head -11' # Lists the size of all the folders$
alias top='top -o cpu'
alias systail='tail -f /var/log/system.log'
alias df='df -h'
# useful command to find what you should be aliasing:
alias profileme="history | awk '{print \$2}' | awk 'BEGIN{FS=\"|\"}{print \$1}' | sort | uniq -c | sort -n | tail -n 20 | sort -nr"
alias gemi="sudo gem install"
# rails stuff
alias log='tail -f -0 ./log/*.log'
alias trestart='touch tmp/restart.txt'
alias tlogd='tail -f log/development.log'
alias ss='ruby ./script/server'
alias sc='ruby ./script/console'
alias cdm='cap deploy deploy:migrate'
alias migrate='rake db:migrate'
alias rollback='rake db:rollback'
alias dtp='rake db:test:prepare'
alias redo="rake db:migrate && rake db:rollback"
alias sr='rake spec'
alias rt='rake test'
alias rf='rake features'
alias hidefile='/usr/bin/SetFile -a "V"'
alias showfile='/usr/bin/SetFile -a "v"'
# replacement netstat cmd to find ports used by apps on OS X
alias netstat_osx="sudo lsof -i -P"
alias portas='netstat -na | grep LISTEN'
alias liga_mc="sudo launchctl load -w /Library/LaunchDaemons/org.macports.memcached.plist"