Skip to content

Commit

Permalink
update irb
Browse files Browse the repository at this point in the history
  • Loading branch information
flexagoon committed Apr 14, 2024
1 parent 8e4453d commit ff381f9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion programs/ruby-irb.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit ff381f9

Please sign in to comment.