X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/xdg-ninja.git/blobdiff_plain/cd7f8100cb6b187649b323bc073115dda3991623..b4cf4ccd476b3ea87a58252bff09ecbc73a7aa19:/programs/ruby-irb.json diff --git a/programs/ruby-irb.json b/programs/ruby-irb.json index 0b14a5b..efde832 100644 --- a/programs/ruby-irb.json +++ b/programs/ruby-irb.json @@ -1,9 +1,14 @@ { "files": [ + { + "path": "$HOME/.irbrc", + "movable": true, + "help": "Export the following environment variable:\n\n```bash\nexport IRBRC=\"$XDG_CONFIG_HOME/irb/irbrc\"\n```\n" + }, { "path": "$HOME/.irb_history", "movable": true, - "help": "In Ruby versions 2.7 or later, configure IRB.conf[:HISTORY_FILE] in your .irbrc to $XDG_STATE_HOME/irb/history. For prior versions, set $irbrc\n" + "help": "In Ruby versions 2.7 or later, add the following to your .irbrc:\n\n```ruby\nIRB.conf[:HISTORY_FILE] ||= File.join(ENV[\"XDG_DATA_HOME\"], \"irb\", \"history\")\n```\n\nFor prior versions, set $IRBRC\n" } ], "name": "irb history"