Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 62 lines (51 sloc) 1.946 kB
252facb @croaky Remove help-strftime
croaky authored
1 # Todo
2 alias todo='$EDITOR ~/.todo'
3
cbea59b @croaky organized aliases by category (Unix, git, Bundler, Rubygems, Rails, H…
croaky authored
4 # Unix
2c8c79a @jferris aliases
jferris authored
5 alias tlf="tail -f"
ea2569c @mike-burns Some useful Mike Burns-isms
mike-burns authored
6 alias ln='ln -v'
7 alias mkdir='mkdir -p'
8 alias ...='../..'
7ac2f90 @qrush Add ls aliases
qrush authored
9 alias l='ls'
10 alias ll='ls -al'
11 alias lh='ls -Alh'
ea2569c @mike-burns Some useful Mike Burns-isms
mike-burns authored
12 alias -g G='| grep'
13 alias -g M='| less'
14 alias -g L='| wc -l'
15 alias -g ONE="| awk '{ print \$1}'"
cbea59b @croaky organized aliases by category (Unix, git, Bundler, Rubygems, Rails, H…
croaky authored
16
17 # git
18 alias g="git"
19 alias gci="git pull --rebase && rake && git push"
20
21 # Bundler
22 alias b="bundle"
23 alias be="bundle exec"
24 alias bake="bundle exec rake"
f859078 @croaky Add `t` alias to run individual test/unit tests
croaky authored
25
26 # Tests and Specs
27 alias t="ruby -I test"
cbea59b @croaky organized aliases by category (Unix, git, Bundler, Rubygems, Rails, H…
croaky authored
28 alias s="bundle exec rspec"
29 alias cuc="bundle exec cucumber"
30
31 # Rubygems
32 alias gi="gem install"
33 alias giv="gem install -v"
34
35 # Rails
87b528b @croaky need to rake in the `migrate`, `remigrate`, and `remongrate` tasks.
croaky authored
36 alias migrate="bundle exec rake db:migrate db:test:prepare"
37 alias remigrate="bundle exec rake db:migrate db:migrate:redo db:schema:dump db:test:prepare"
38 alias remongrate="bundle exec rake mongoid:migrate mongoid:migrate:redo"
cbea59b @croaky organized aliases by category (Unix, git, Bundler, Rubygems, Rails, H…
croaky authored
39
40 # Heroku staging
41 alias staging='heroku run console --remote staging'
4987246 @croaky Improve Heroku aliases
croaky authored
42 alias staging-name='echo `basename $PWD`-staging'
352dcad @croaky don't require heroku to be in your project's bundle
croaky authored
43 alias staging-process='watch heroku ps --remote staging'
44 alias staging-releases='heroku releases --remote staging'
45 alias staging-tail='heroku logs --tail --remote staging'
cbea59b @croaky organized aliases by category (Unix, git, Bundler, Rubygems, Rails, H…
croaky authored
46
47 # Heroku production
48 alias production='heroku run console --remote production'
4987246 @croaky Improve Heroku aliases
croaky authored
49 alias production-name='echo `basename $PWD`-production'
352dcad @croaky don't require heroku to be in your project's bundle
croaky authored
50 alias production-process='watch heroku ps --remote production'
51 alias production-releases='heroku releases --remote production'
52 alias production-tail='heroku logs --tail --remote production'
cbea59b @croaky organized aliases by category (Unix, git, Bundler, Rubygems, Rails, H…
croaky authored
53
54 # Heroku databases
4987246 @croaky Improve Heroku aliases
croaky authored
55 alias db-pull-staging='heroku db:pull --remote staging --confirm `staging-name`'
56 alias db-pull-production='heroku db:pull --remote production --confirm `production-name`'
57 alias db-copy-production-to-staging='heroku pgbackups:restore DATABASE `heroku pgbackups:url --app production-name` --app `staging-name` --confirm `staging-name`'
cbea59b @croaky organized aliases by category (Unix, git, Bundler, Rubygems, Rails, H…
croaky authored
58 alias db-backup-production='heroku pgbackups:capture --remote production'
4c6da77 @croaky Add `whats-my-ip` alias
croaky authored
59
60 # Network
61 alias whats-my-ip="curl -s checkip.dyndns.org | grep -Eo '[0-9\.]+'"
Something went wrong with that request. Please try again.