-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshell_alias_and_export
65 lines (54 loc) · 1.53 KB
/
shell_alias_and_export
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
alias mongostart='mongod run --config /usr/local/etc/mongod.conf'
# Turn on color
export TERM=xterm-color
alias ls='ls -G'
# Other command aliases
alias ll='ls -hl'
alias la='ls -a'
alias lla='ls -lah'
alias lll='lla'
alias l='less'
alias m='more'
alias h='history'
alias ..='cd ..'
alias ...='cd .. ; cd ..'
alias g='grep --color=auto'
alias yo='say yo'
alias party='say lets get this party started'
##
# Development
##
alias gems='gem list'
alias cuk='nocorrect cucumber'
alias rmorig="find . -iname '*.orig' -exec mv \{\} ~/.Trash \;"
alias webhook="ultrahook quux 3000"
alias console_with_logs='tail -f log/developent.log & rails c'
##
# RAILS command aliases
##
alias bi='bundle install'
alias bilocal='bundle install --without production'
alias rspec='nocorrect rspec'
alias dbreboot='rake db:drop;rake db:create;rake db:migrate;rake db:seed; rake db:test:prepare'
alias eb="~/bin/editbundle"
##
# GIT
##
alias gems='git status'
alias gc='git commit'
alias ga='git add'
alias gs='git status'
alias gitundo='git reset --soft HEAD~'
alias stash='git stash'
alias pop='git stash pop'
# Other command aliases
alias ducks='du -cks * | sort -rn|head -11'
alias ms="mysql -u root"
alias ams="mysqladmin -u root"
alias server='mongrel_rails start'
alias bonjourstart="sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist"
alias bonjourstop="sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist"
export GIT_EDITOR='subl -n -w'
export EDITOR='subl -n'
export VISUAL='subl -n'
export CLICOLOR='yes'