Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions lib/rex/ui/text/shell.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,9 @@ def tab_complete(str)
# Run the command processing loop.
#
def run(&block)
begin
require 'pry'
# pry history will not be loaded by default when pry is used as a breakpoint like `binding.pry`
# Only suppress Pry history if Pry is already loaded
if defined?(Pry)
Pry.config.history_load = false
rescue LoadError
# Pry is a development dependency, if not available suppressing history_load can be safely ignored.
end

with_history_manager_context do
Expand Down
Loading