Sha256: f4918e07e73f96b37c723500cc63cbd7b7d879b847101d44ec1cd5d147735b17
Contents?: true
Size: 952 Bytes
Versions: 1
Compression:
Stored size: 952 Bytes
Contents
require 'hairballs' Hairballs.add_theme(:turboladen) do |theme| theme.libraries do |libs_to_require| 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.prompt do |prompt| preface = proc do |status = ' '| if Hairballs.project_name "⟪#{Hairballs.project_name.to_s.light_blue}⟫#{status}%03n" else "❨#{'irb'.light_blue}❩#{status}%03n" end end prompt.auto_indent = true prompt.normal = "#{preface.call}:%i> " prompt.continued_string = "#{preface.call('❊%l'.yellow)}:%i> " prompt.continued_statement = "#{preface.call('❊?'.yellow)}:%i> " prompt.indented_code = "#{preface.call('✚ '.yellow)}:%i> " prompt.return_format = "➥ %s\n" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hairballs-0.1.1 | lib/hairballs/themes/turboladen.rb |