Skip to content

Commit

Permalink
toggle rails environment quick like
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert L. Carpenter committed Dec 16, 2015
1 parent d0df626 commit d0a7125
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
4 changes: 0 additions & 4 deletions .config/fish/functions/dotest.fish

This file was deleted.

11 changes: 11 additions & 0 deletions .config/fish/functions/rorenv.fish
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
function rorenv -d "sets the environment mode for rails testing"
if test 1 -eq (count $argv)
set -g RAILS_ENV $argv[1]
else
if set -q RAILS_ENV
set -g -e RAILS_ENV
else
set -g RAILS_ENV production
end
end
end
4 changes: 0 additions & 4 deletions .config/fish/functions/undotest.fish

This file was deleted.

0 comments on commit d0a7125

Please sign in to comment.