Permalink
Browse files

Also complete on Ripl::ShellCommands::BUILTIN.

  • Loading branch information...
1 parent 5c395f4 commit 56bdca61921229af02f4699fa67fb84a78252099 @postmodern committed Dec 2, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 lib/ripl/completions/shell_commands.rb
@@ -3,6 +3,13 @@
glob = "#{name}*"
paths = Set[]
+ # search through the BUILTIN command names
+ Ripl::ShellCommands::BUILTIN.each do |command|
+ if command.start_with?(name)
+ paths << "!#{command}"
+ end
+ end
+
# search through $PATH for similar program names
Ripl::ShellCommands::PATHS.each do |dir|
Dir.glob(File.join(dir,glob)) do |path|

0 comments on commit 56bdca6

Please sign in to comment.