You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Coolline and Coderay for syntax highlighting as
you type. Optional. MRI 1.9.3/2.0.0 only
Usage
Ruby 1.9.2+, Rails 3 or 4 only. Add to your project Gemfile:
group:development,:testdogem'jazz_hands'end
That's it. Run rails console as usual.
Hirb isn't enabled by default. To use, run Hirb.enable in the console.
Ruby compiled against a proper readline library, ideally GNU readline, is
recommended. Alternatively, gem install rb-readline for an
acceptible backup. Using ruby compiled against a libedit wrapper (primarily OS
X) will work but is not recommended.
Options
Change the following options by creating an initializer in your Rails project
Example config/initializers/jazz_hands.rb:
Color the console prompt? Defaults to true when the current ruby is compiled
against GNU readline or rb-readline, which don't have issues counting
characters in colored prompts. false for libedit.
Note: Pry.color = false trumps this setting and disables all console coloring.
prompt_separator
Separator string between the application name and line input. Defaults to »
for GNU readline or libedit. Defaults to > for rb-readline which fails on
mixed encodings.
Syntax highlighting
Syntax highlighting as you type via Coolline and Coderay
is disabled by default due to slightly buggy behavior. To enable, add
JazzHands.enable_syntax_highlighting_as_you_type! to the initializer. Only
works with MRI 1.9.3 or 2.0.0.