diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2022-12-26 18:16:20 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-12-27 00:09:12 +0000 |
commit | c09f342d04c62c9a75c855bad92efe06ee698280 (patch) | |
tree | 55c368964441508d01a70a3cb059188d8c92333b /lib/irb | |
parent | 8f678d61a597fc2871031d7a38698f3dd63d8c29 (diff) |
[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
Diffstat (limited to 'lib/irb')
-rw-r--r-- | lib/irb/init.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/init.rb b/lib/irb/init.rb index 55453cc8f7..50df0e29c2 100644 --- a/lib/irb/init.rb +++ b/lib/irb/init.rb @@ -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}"} |