mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Alias "gr(a|e)y" to "bright_black"
This commit is contained in:
parent
0c3fc8bfaf
commit
a86ddc550a
1 changed files with 3 additions and 0 deletions
|
@ -28,6 +28,9 @@ class Pry
|
|||
end
|
||||
end
|
||||
|
||||
alias_method :grey, :bright_black
|
||||
alias_method :gray, :bright_black
|
||||
|
||||
def strip_color text
|
||||
text.gsub /\e\[.*?(\d)+m/, ''
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue