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:
parent
84c154e275
commit
3203f00218
2 changed files with 8 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -23,5 +23,9 @@ class Pry
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
def complete(search)
|
||||
super + Bond::Rc.files(search.split(" ").last || '')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue