Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: blanu/esh
base: c4f9455f59
...
head fork: blanu/esh
compare: 19a4f979e2
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 5 additions and 5 deletions.
  1. +5 −5 esh.rb
View
10 esh.rb
@@ -39,8 +39,8 @@ def initialize()
if Readline.respond_to?("basic_word_break_characters=")
Readline.basic_word_break_characters= " \t\n\"\\'`><=;|&{("
end
- Readline.completion_append_character = nil
Readline.completion_proc = Proc.new do |s|
+ Readline.completion_append_character = nil
if s =~ /^\//
irb_completions = []
else
@@ -51,12 +51,12 @@ def initialize()
else
last = ""
end
- s = File.expand_path(s) + last
- Dir[s+'*'].map do |x|
+ expanded = File.expand_path(s) + last
+ Dir[expanded+'*'].map do |x|
if File.directory? x
- x + "/"
+ x.sub(expanded, s) + "/"
else
- x
+ x.sub(expanded, s)
end
end.grep(/^#{Regexp.escape(s)}/).select { |x| x != s + "/" } + irb_completions
end

No commit comments for this range

Something went wrong with that request. Please try again.