summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorr-obert <robert@jazzonmymind.xyz>2017-07-15 07:14:21 +0100
committerr-obert <robert@jazzonmymind.xyz>2017-07-15 07:14:21 +0100
commitbeaad80d0c1c1bf81ee464cdf9ae9a9e9b38c1df (patch)
tree87514655c79ad561ebbfa59ec20633695a24695c
parent3743228846cda5cf3c90bda7ceb787ef71cfbaad (diff)
downloadpry-beaad80d0c1c1bf81ee464cdf9ae9a9e9b38c1df.tar.gz
whereami?!?!?!?! fix #1597
-rw-r--r--CHANGELOG.md1
-rw-r--r--lib/pry/commands/whereami.rb1
2 files changed, 2 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6369dca1..39ce0da4 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,6 @@
### HEAD
+* Add alias 'whereami[?!]+' for 'whereami' command. ([#1597](https://github.com/pry/pry/pull/1597))
* Improve Ruby 2.4 support ([#1611](https://github.com/pry/pry/pull/1611)):
* Deprecated constants are hidden from `ls` output by default, use the `-d` switch to see them.
* Fix warnings that originate in Pry while using the repl.
diff --git a/lib/pry/commands/whereami.rb b/lib/pry/commands/whereami.rb
index d7c1eeca..810f407f 100644
--- a/lib/pry/commands/whereami.rb
+++ b/lib/pry/commands/whereami.rb
@@ -193,4 +193,5 @@ class Pry
Pry::Commands.add_command(Pry::Command::Whereami)
Pry::Commands.alias_command '@', 'whereami'
+ Pry::Commands.alias_command /whereami[!?]+/, 'whereami'
end