зеркало из https://github.com/github/ruby.git
[ruby/irb] Fix wrong conf path with XDG_CONFIG_HOME. It should be under the HOME directory, not current directory
https://github.com/ruby/irb/commit/33a5e55ffd
This commit is contained in:
Родитель
8f678d61a5
Коммит
c09f342d04
|
@ -407,9 +407,9 @@ module IRB # :nodoc:
|
|||
end
|
||||
if home = ENV["HOME"]
|
||||
yield proc{|rc| home+"/.irb#{rc}"}
|
||||
yield proc{|rc| home+"/.config/irb/irb#{rc}"}
|
||||
end
|
||||
current_dir = Dir.pwd
|
||||
yield proc{|rc| current_dir+"/.config/irb/irb#{rc}"}
|
||||
yield proc{|rc| current_dir+"/.irb#{rc}"}
|
||||
yield proc{|rc| current_dir+"/irb#{rc.sub(/\A_?/, '.')}"}
|
||||
yield proc{|rc| current_dir+"/_irb#{rc}"}
|
||||
|
|
Загрузка…
Ссылка в новой задаче