1
0
Fork 0

Chang ruby aliases to functions

This commit is contained in:
Gregory Eremin 2014-08-24 16:58:45 +07:00
parent 7a8bc6bd5c
commit 31e736049d
3 changed files with 16 additions and 5 deletions

View File

@ -1 +0,0 @@
.dotfiles

View File

@ -17,12 +17,10 @@ alias b "bundle exec"
# alias http "ruby -run -e httpd . -p5000" # alias http "ruby -run -e httpd . -p5000"
alias rails "bundle exec rails" alias rails "bundle exec rails"
alias rake "bundle exec rake"
alias sidekiq "bundle exec sidekiq" alias sidekiq "bundle exec sidekiq"
alias rspec "bundle exec rspec" alias rspec "bundle exec rspec"
alias cucumber "bundle exec cucumber" alias cucumber "bundle exec cucumber"
alias cap "bundle exec cap" alias cap "bundle exec cap"
alias mina "bundle exec mina"
alias foreman "bundle exec foreman" alias foreman "bundle exec foreman"
alias bd "bundle install --path=vendor/gems --jobs=8 --verbose" alias bd "bundle install --path=vendor/gems --jobs=8 --verbose"
@ -31,8 +29,6 @@ alias rs "rails s"
alias rs1 "rails s -p3001" alias rs1 "rails s -p3001"
alias rs2 "rails s -p3002" alias rs2 "rails s -p3002"
alias nano-console "ssh ins1.int.avs.io -t 'screen -r localhots'"
# Git # Git
alias git "git-achievements" alias git "git-achievements"
alias gl "git log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) %C(bold alias gl "git log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) %C(bold

View File

@ -6,3 +6,19 @@ set -x RUBY_FREE_MIN 200000 # Deprecated since 2.1.0
set -x RUBY_HEAP_SLOTS_INCREMENT 300000 set -x RUBY_HEAP_SLOTS_INCREMENT 300000
set -x RUBY_HEAP_SLOTS_GROWTH_FACTOR 1 set -x RUBY_HEAP_SLOTS_GROWTH_FACTOR 1
set -x RUBY_GC_MALLOC_LIMIT 79000000 set -x RUBY_GC_MALLOC_LIMIT 79000000
function mina
if test -e Gemfile
bundle exec mina $argv
else
/Users/chez/.rbenv/shims/mina $argv
end
end
function rake
if test -e Gemfile
bundle exec rake $argv
else
/Users/chez/.rbenv/shims/rake $argv
end
end