Allow tab completion for resource files in current dir

unstable
James Lee 2012-03-02 11:19:11 -07:00
parent faad9db393
commit 65c0cbdc00
1 changed files with 2 additions and 1 deletions

View File

@ -231,7 +231,8 @@ class Core
begin begin
[ [
::Msf::Config.script_directory + File::SEPARATOR + "resource", ::Msf::Config.script_directory + File::SEPARATOR + "resource",
::Msf::Config.user_script_directory + File::SEPARATOR + "resource" ::Msf::Config.user_script_directory + File::SEPARATOR + "resource",
"."
].each do |dir| ].each do |dir|
next if not ::File.exist? dir next if not ::File.exist? dir
tabs += ::Dir.new(dir).find_all { |e| tabs += ::Dir.new(dir).find_all { |e|