-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbash_aliases
61 lines (57 loc) · 1.6 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# General
alias ....='cd ../../..'
alias ...='cd ../..'
alias ..='cd ..'
alias la='ls -laG'
alias ll='ls -lG'
alias tlf='tail -f'
alias witch='echo "which ?"'
alias headers='curl -s -S --user-agent "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko" -D - -o /dev/null'
alias obd='minicom -c on -b 38400 -D /dev/cu.OBDII-SPP'
alias webserver='ruby -run -ehttpd . -p3000'
alias mc='LANG=en_EN.UTF-8 mc'
alias open='xdg-open'
# Rails
alias be='bundle exec'
alias devlog='tail -f log/development.log'
alias r='rails'
alias rdbm='rake db:migrate'
alias rdbr='rake db:rollback'
alias rdbtp='rake db:test:prepare'
alias ri='ri -f ansi'
alias rr='rake routes'
alias rc='rails console'
alias rd='rails destroy'
alias rg='rails generate'
alias rs='rails server -b 0.0.0.0 -p 3000'
alias ttr='touch tmp/restart.txt'
# View the standard out (puts) from any pow app
alias powlog='tail -f ~/Library/Logs/Pow/apps/*'
# Git
alias g='git'
alias ga='git add'
alias gb='git branch --verbose'
alias gba='git branch -a'
alias gc='git commit -v'
alias gca='git commit -v -a'
alias gco="git checkout"
alias gcob="git checkout -b"
alias gd='git diff --ignore-space-change'
# alias gd='git diff | $EDITOR'
alias gh='github'
alias gk='gitk &'
alias gl='git pull'
alias glom='git pull origin master'
alias glog='git log'
alias gm="git merge"
alias gmt="git mergetool"
alias gp='git push'
alias gphm='git push heroku master'
alias gpl='git pull --rebase'
alias gsi='git submodule init'
alias gst='git status'
alias gsu='git submodule update'
alias gx='gitx'
# MySQL
alias m='mysql -h localhost -u root -p'
alias pow='ln -s "`pwd`" ~/.pow'