1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

filename completion for cat and shell

This commit is contained in:
Conrad Irwin 2012-08-21 00:44:26 -07:00
parent 84c154e275
commit 3203f00218
2 changed files with 8 additions and 0 deletions

View file

@ -137,6 +137,10 @@ class Pry
code
end
def complete(search)
super + Bond::Rc.files(search.split(" ").last || '')
end
def detect_code_type_from_file(file_name)
name, ext = File.basename(file_name).split('.', 2)

View file

@ -23,5 +23,9 @@ class Pry
end
end
end
def complete(search)
super + Bond::Rc.files(search.split(" ").last || '')
end
end
end