Permalink
Browse files

A few pryrc tweaks

  • Loading branch information...
1 parent c89d286 commit 513d687ffa22dae591533936c16dbd272a27dfc8 @mdespuits committed Feb 25, 2014
Showing with 11 additions and 8 deletions.
  1. +11 −8 pryrc
View
19 pryrc
@@ -36,7 +36,7 @@ require 'pry'
Pry.config.editor = proc { |f,l| "subl #{f}:#{l}" }
# Set Pry theme
-Pry.config.theme = "tomorrow-night"
+Pry.config.theme = "pry-modern"
# Other (IMHO) good looking pry-themes:
# "vividchalk", "railscasts", "github", "solarized"
# "pry-zealand-16", "tomorrow", "pry-modern", "monokai"
@@ -67,6 +67,16 @@ if defined?(Rails)
end
end
+# History (Use one history file)
+Pry.config.history.file = "~/.irb_history"
+
+# ===================
+# Custom Pry aliases
+# ===================
+# Where am I?
+Pry.config.commands.alias_command 'w', 'whereami'
+# Clear Screen
+Pry.config.commands.alias_command '.cls', '.clear'
# Shortcuts for debugging commands
if defined?(PryDebugger)
Pry.commands.alias_command 'c', 'continue'
@@ -76,13 +86,6 @@ if defined?(PryDebugger)
Pry.commands.alias_command 'ss', 'show-source'
end
-# ===================
-# Custom Pry aliases
-# ===================
-# Where am I?
-Pry.config.commands.alias_command 'w', 'whereami'
-# Clear Screen
-Pry.config.commands.alias_command '.cls', '.clear'
# Return only the methods not present on basic objects
class Object

0 comments on commit 513d687

Please sign in to comment.