Last active
December 18, 2015 00:39
-
-
Save mathieugagne/5698354 to your computer and use it in GitHub Desktop.
.bash_aliases
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Rspec to keep color option | |
| alias spec='spec --color --format specdoc' | |
| # Rails server | |
| alias railss='rails s thin --debugger' | |
| alias railsss='sublime -a . ; rails s thin --debugger' | |
| alias migrate="rake db:migrate && rake db:migrate RAILS_ENV=test" | |
| alias hardreset="rake db:drop && rake db:migrate && rake db:seed && rake db:test:prepare" | |
| # bundle | |
| alias be="bundle exec" | |
| # add commit deploy | |
| alias commit="git add . -A ; git commit -a -m" | |
| alias push="git push -u origin master" | |
| alias deploy="git push -u origin master ; bundle exec cap deploy" | |
| alias log="git log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short" | |
| alias amend="git add . -A ; git commit --amend -m" | |
| alias gits="git status" | |
| alias gitd="git diff" | |
| alias gitc="git clean -f -d" | |
| # testing | |
| alias spec="bundle exec rspec spec --profile --color --format documentation" | |
| # sunspot | |
| alias solr_start="bundle exec rake sunspot:solr:start" | |
| alias solr_stop="bundle exec rake sunspot:solr:stop" | |
| alias solr_restart="solr_stop ; solr_start" | |
| alias solr_reindex="bundle exec rake sunspot:reindex" | |
| # editor | |
| alias e="sublime-text-2 -a" | |
| alias ee="e -a ." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment