Commit graph

24 commits

Author SHA1 Message Date
Greg Lazarev
f6ce831b9d Remove uncommon aliases 2015-05-26 14:08:04 -07:00
Robert Eshleman
192729a5d6 Don't interpolate environment variables in aliases
A few aliases contain references to environment variables, but were
defined using double quotes. This caused zsh to interpolate the value of
those variables when the alias was defined instead of when it was
executed. In particular, any change to `PATH` (or `EDITOR` or `VISUAL`)
in `.zshrc.local`, which is sourced after `.aliases`, would not be
reflected in these aliases.

This commit defines these aliases using single quotes so that the
environment variables are evaluated when the alias is executed.
2015-02-02 20:07:38 -05:00
Derek Prior
bbf920942f
Add alias for pretty-printing $PATH
I've had a number of issues with $PATH of late and I kept using this to
make it readable (and comparable).
2014-12-19 10:51:02 -05:00
Jessie A. Young
b9d24c014a Remove Zeus and Cucumber references
* Spring is now built in to Rails:
  http://weblog.rubyonrails.org/2014/4/8/Rails-4-1/
* Haven't used Cucumber on a project in over a year
2014-06-06 16:01:37 -04:00
Rich Rines
0b5eca112a Remove test:prepare from migrate alias
* `rake db:test:prepare` has been depreciated in rails 4.1
2014-05-28 10:20:15 -07:00
Greg Lazarev
ee3f437c74 Remove gi and giv aliases
Often mistyping things like `gi tst` causes `gi` alias to trigger the install of
the `tst` gem. This is quite annoying and too close to `git` command which we
run much more often than `gem install`. With bundler we should almost never run
`gem install`.
2014-04-04 22:35:50 -07:00
Michael Gee
ce425d6e74 fix relative .aliases.local path 2013-07-23 15:02:05 -07:00
Derek Prior
edfc415f57 Make the migrate alias faster
This was loading up the environment four times when it really only needs
to happen twice.
2013-07-16 09:15:28 -04:00
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