Sha256: 99f6d2304e0dda5a7e852ce528bd1fbc00dfbcd95b323da74b56b6152ac2a47c

Contents?: true

Size: 787 Bytes

Versions: 1

Compression:

Stored size: 787 Bytes

Contents

require_relative '../../hairballs'

Hairballs.add_theme(:turboladen_rails) do |theme|
  theme.libraries do
    libs_to_require = %w(
      irb/completion
      looksee
      colorize
    )

    libs_to_require +
      case RUBY_PLATFORM
      when /mswin32|mingw32/
        %w(win32console)
      when /darwin/
        %w(terminal-notifier)
      else
        []
      end
  end

  theme.extend_bundler = true

  theme.prompt do |prompt|
    prompt.auto_indent = true
    preface = Hairballs.project_name.light_blue
    prompt.normal = "#{preface}> "
    prompt.continued_string = "#{preface}#{'❊%l'.yellow}> "
    prompt.continued_statement = "#{preface}#{'⇥'.yellow} %i> "
    prompt.indented_code = "#{preface}#{'⇥'.yellow} %i> "
    prompt.return_format = "➥ %s\n"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hairballs-0.0.1 lib/hairballs/themes/turboladen_rails.rb