Skip to content

Update rc-files documentation#1113

Merged
tompng merged 2 commits into
ruby:masterfrom
eval:patch-1
Dec 4, 2025
Merged

Update rc-files documentation#1113
tompng merged 2 commits into
ruby:masterfrom
eval:patch-1

Conversation

@eval

@eval eval commented Jul 30, 2025

Copy link
Copy Markdown
Contributor

Bringing docs in line with what (and in what order) rc files are loaded:

  • $HOME/.config/irb/irbrc is only considered when XDG_CONFIG_HOME is not set.
  • loading of irb.rc was removed in 11d03a6

Verified order with files containing puts "Loading #{__FILE__}":

❯ env IRBRC=tmp/irbrc_env_var XDG_CONFIG_HOME=tmp/xdg_config_home irb
Loading tmp/irbrc_env_var
Loading tmp/xdg_config_home/irb/irbrc
Loading /Users/gert/.irbrc
Loading /Users/gert/projects/uri-smtp/uri-smtp/.irbrc
Loading /Users/gert/projects/uri-smtp/uri-smtp/_irbrc
Loading /Users/gert/projects/uri-smtp/uri-smtp/$irbrc
irb(main):001>
eval added 2 commits July 30, 2025 13:02
Bringing docs in line with what (and in what order) rc files are loaded:
- $HOME/.config/irb/irbrc is only considered when XDG_CONFIG_HOME is not set.
- loading of irb.rc was removed in 11d03a6
@eval

eval commented Dec 2, 2025

Copy link
Copy Markdown
Contributor Author

@tompng updated with master. Is it good to go?

@tompng tompng left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thank you 👍

@tompng tompng merged commit e204f85 into ruby:master Dec 4, 2025
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants