Skip to content

Commit

Permalink
Merge pull request #2133 from tbrisker/patch-1
Browse files Browse the repository at this point in the history
Update `?` alias to use show-source
  • Loading branch information
kyrylo committed Nov 28, 2020
2 parents 22c3597 + c256b40 commit 845cd6d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion lib/pry/commands/show_doc.rb
Expand Up @@ -89,6 +89,5 @@ def start_line_for(code_object)
end

Pry::Commands.add_command(Pry::Command::ShowDoc)
Pry::Commands.alias_command '?', 'show-doc'
end
end
1 change: 1 addition & 0 deletions lib/pry/commands/show_source.rb
Expand Up @@ -113,5 +113,6 @@ def start_line_for(code_object)
Pry::Commands.add_command(Pry::Command::ShowSource)
Pry::Commands.alias_command 'show-method', 'show-source'
Pry::Commands.alias_command '$', 'show-source'
Pry::Commands.alias_command '?', 'show-source -d'
end
end

0 comments on commit 845cd6d

Please sign in to comment.