Closed espen closed 10 years ago
As mentioned in issue #32
~ ls .pry/themes github.prytheme.rb pry-love-8.prytheme.rb pry-tepid-16.prytheme.rb twilight.prytheme.rb monokai.prytheme.rb pry-modern-16.prytheme.rb pry-tepid-8.prytheme.rb vim-default.prytheme.rb pry-classic-16.prytheme.rb pry-modern-256.prytheme.rb pry-zealand-16.prytheme.rb vim-detailed.prytheme.rb pry-classic-256.prytheme.rb pry-modern-8.prytheme.rb pry-zealand-8.prytheme.rb zenburn.prytheme.rb pry-classic-8.prytheme.rb pry-monochrome.prytheme.rb railscasts.prytheme.rb pry-cold.prytheme.rb pry-siberia-16.prytheme.rb solarized.prytheme.rb pry-love-16.prytheme.rb pry-siberia-8.prytheme.rb tomorrow.prytheme.rb
What's in your ~/.pryrc
?
What's your OS?
What's your terminal?
OSX. Fish.
Pry.config.theme = 'pry-modern' Pry.config.editor = 'subl -n -w'
Thank you!
The problem is that pry-modern
is not a valid theme name. You should choose between pry-modern-8
, pry-modern-16
or pry-modern-256
depending on your preference and terminal capabilites (the number represents the number colours the theme uses).
gem install pry-theme -v 1.0.3
now warns you about this, so it is the users responsibility to set the correct theme name.
[1] pry(main)> PryTheme => PryTheme [2] pry(main)> pry-theme try pry-classic Cannot find "pry-classic" amongst themes in .pry/themes [3] pry(main)> pry-theme list NoMethodError: undefined method
activate' for nil:NilClass from pry-theme-1.0.2/lib/pry-theme/preview.rb:14:in
short'