Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Also complete on Ripl::ShellCommands::BUILTIN.

  • Loading branch information...
commit 56bdca61921229af02f4699fa67fb84a78252099 1 parent 5c395f4
Postmodern authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 lib/ripl/completions/shell_commands.rb
7 lib/ripl/completions/shell_commands.rb
View
@@ -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|
Please sign in to comment.
Something went wrong with that request. Please try again.