Commit graph

16 commits

Author SHA1 Message Date
Greg Lazarev
ce7ad494cf Include local aliases file
* `.aliases.local` should be used to add personal aliases
2013-07-06 11:08:47 -07:00
Gabe Berke-Williams
89b60fcb49 g alias for git
With arguments, g acts like git.
Without arguments, it runs `git status`.

* Source functions/* after loading ZSH completion so `compdef` is available to g
  alias
2013-03-03 17:14:16 -05:00
Dan Croak
a045888278 Add e alias for $EDITOR, v for $VISUAL
* Goal is to quickly open current project in vim to v.
* This is a dozens-of-times-per-day kind of task for me.

Lively discussion here:

https://github.com/thoughtbot/dotfiles/pull/100
2013-02-26 21:50:20 -08:00
Dan Croak
0d43fe5246 Use Zeus via aliases, rake
* Create `rake` function and `rk` alias.
* Add `z` alias for `zeus`.
* Alias `migrate` to `m` given how common a task it is.
2013-01-21 06:43:30 -08:00
Joe Ferris
6603b694b0 Replace s shell script with rspec shell function and alias
* Use a regular alias to make `s` short for `rspec`
* Use an `rspec` shell function to route to zeus when appropriate
* Removes confusion from `s` working differently than `rspec`
* Removes need to use a special alias to get zeus working
2013-01-18 13:24:53 -05:00
Dan Croak
8649403044 Add Heroku scripts
staging:

    staging console
    staging migrate
    staging process
    staging open
    watch staging ps
    staging tail

production:

    production backup
    production console
    production migrate
    production open
    watch production ps
    production tail

load-backup-into:

    load-backup-into staging
    load-backup-into development

Notes on the last command:

* Copy latest production database backup into development database using
  preferred pgbackups + pg_restore method recommended by Heroku.
* Do not assume local development database name.
* Get local database name from config/database.yml.
* This did not previously exist in dotfiles.

Supporting change for these commands:

* Add ~/.bin to the PATH.

https://github.com/thoughtbot/dotfiles/pull/76
2013-01-12 18:06:12 -08:00
Dan Croak
80b77cdefc Run specs directly from vim
* Run current spec file.
* Run spec nearest cursor.
* Run last spec that was run.
* Convert s alias to s script, use Zeus if present.
2012-11-19 09:04:34 -08:00
Dan Croak
4882c418fd Improve Rails-related aliases
* Remove `help-strftime` (rarely call it).
* Remove `be` and `bundle exec` (using `bundle --binstubs` now).
* Add `t` command for running isolated `Test::Unit` tests.
* Remove MongoDB migrate (rarely use Mongo).
* Rename `staging` to `staging-console` to better reveal intent.
* Remove `db-pull-*` commands (`pg_restore` is new best practice).
2012-09-15 12:07:10 -07:00
Dan Croak
87b528b8f3 need to rake in the migrate, remigrate, and remongrate tasks. 2011-12-21 10:55:41 -05:00
Dan Croak
352dcade99 don't require heroku to be in your project's bundle 2011-12-04 18:30:18 -05:00
Dan Croak
6458ae7015 one more db backup command alias 2011-12-04 15:45:34 -05:00
Dan Croak
cbea59babc organized aliases by category (Unix, git, Bundler, Rubygems, Rails, Heroku). added some intense Heroku aliases for introspecting on your app and also interacting with your database 2011-12-04 15:09:54 -05:00
Dan Croak
9495c56e81 Some new aliases: "bake" for bundle exec rake, "staging" for getting into a heroku cedar staging console, "production" for same thing, diff env 2011-10-22 20:43:57 -03:00
Nick Quaranto
7ac2f90571 Add ls aliases 2011-04-04 10:27:03 -04:00
Mike Burns
ea2569ca19 Some useful Mike Burns-isms 2011-01-14 01:17:25 -05:00
Joe Ferris
2c8c79af30 aliases 2011-01-13 17:32:51 -05:00