forked from gf3/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.aliases
75 lines (67 loc) · 2.54 KB
/
.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Dir navigation
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias ~='cd ~'
alias ll='tree --dirsfirst -ChFupDaLg 1'
alias sniff="sudo ngrep -W byline -d 'en1' -t '^(GET|POST) ' 'tcp and port 80'"
alias showhidden='defaults write com.apple.Finder AppleShowAllFiles YES'
alias hidehidden='defaults write com.apple.Finder AppleShowAllFiles NO'
# Android
alias chromeremote="adb forward tcp:9222 localabstract:chrome_devtools_remote"
# Utilities
alias a="ack -ia"
alias b="bundle exec"
alias c="pygmentize -O style=monokai -f console256 -g"
alias d="du -h -d=1"
alias df="df -h"
alias g="git"
alias grep='GREP_COLOR="1;37;45" LANG=C grep --color=auto'
alias h="history"
alias httpdump="sudo tcpdump -i en1 -n -s 0 -w - | grep -a -o -E \"Host\: .*|GET \/.*\""
alias ip="curl -s http://checkip.dyndns.com/ | sed 's/[^0-9\.]//g'"
alias localip="ipconfig getifaddr en1"
alias rkt="racket -il xrepl"
alias tmux="tmux -2"
# Git Aliases
alias gst='git status'
alias gp='git push'
alias gph='git push heroku'
alias gd='git diff | mate'
alias gc='git commit -v'
alias gca='git commit -v -a'
alias gb='git branch --color'
alias gba='git branch -a'
alias gco='git checkout'
alias git co='git checkout'
alias diffp='git log --stat production..master' # see the differences between production and master
alias notpushed='git cherry -v origin' # see the all commits that I haven't pushed yet
alias gitlog="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
alias gl='git log --pretty=oneline --abbrev-commit'
# REDIS
alias redis='redis-cli'
# CLOJURE
alias lc='lein repl'
alias li='lein install org.clojure/'
# RAILS
alias rails='bundle exec rails'
alias rc='bundle exec rails c'
alias rs='bundle exec rails s'
alias be='bundle exec'
alias bi='bundle install --without=production'
alias migrateonly='bundle exec rake db:migrate'
alias migrate='bundle exec rake db:migrate && ann && prepare'
alias prepare='bundle exec rake db:test:prepare'
alias ann="bundle exec annotate --position='before' --exclude tests,fixtures --show-indexes"
alias seed="resetdb"
alias stats="bundle exec rake stats"
alias rake="bundle exec rake"
alias resetdb="bundle exec rake db:reset"
alias autotest="bundle exec autotest"
alias docs="bundle exec rake doc:reapp"
alias diagram="bundle exec rake erd"
alias ssstart="bundle exec rake sunspot:solr:start"
alias ssstop="bundle exec rake sunspot:solr:stop"
alias ssindex="bundle exec rake sunspot:solr:reindex"
alias rspec="bundle exec rspec"
alias spec="bundle exec rake spec"