Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
966108a0
Commit
966108a0
authored
Apr 23, 2013
by
Robby Russell
Browse files
Merge pull request #1724 from miry/rails_aliases
Added global aliases to use RAILS_ENV.
parents
6daaae63
ad3f5925
Changes
2
Hide whitespace changes
Inline
Side-by-side
plugins/rails/rails.plugin.zsh
View file @
966108a0
...
...
@@ -10,6 +10,9 @@ alias migrate='rake db:migrate && rake db:test:prepare'
alias
sc
=
'ruby script/console'
alias
sd
=
'ruby script/server --debugger'
alias
devlog
=
'tail -f log/development.log'
alias
-g
RET
=
'RAILS_ENV=test'
alias
-g
REP
=
'RAILS_ENV=production'
alias
-g
RED
=
'RAILS_ENV=development'
function
remote_console
()
{
/usr/bin/env ssh
$1
"( cd
$2
&& ruby script/console production )"
...
...
plugins/rails3/rails3.plugin.zsh
View file @
966108a0
...
...
@@ -21,3 +21,6 @@ alias rsd='_rails_command server --debugger'
alias
devlog
=
'tail -f log/development.log'
alias
rdm
=
'rake db:migrate'
alias
rdr
=
'rake db:rollback'
alias
-g
RET
=
'RAILS_ENV=test'
alias
-g
REP
=
'RAILS_ENV=production'
alias
-g
RED
=
'RAILS_ENV=development'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment