Add XDG support

This commit is contained in:
2025-04-04 17:43:06 +00:00
parent f71b17e5ff
commit e04bcc547b
7 changed files with 16 additions and 0 deletions

19
ruby/.config/irb/irbrc Normal file
View File

@@ -0,0 +1,19 @@
# Runtime Configuration for IRB (Interactive Ruby)
require 'irb/completion'
IRB.conf[:AUTO_INDENT] = true
# History configuration
IRB.conf[:SAVE_HISTORY] = 1000
IRB.conf[:HISTORY_FILE] = "#{ENV["HOME"]}/.history/ruby"
# Custom Prompt
IRB.conf[:PROMPT][:MY_PROMPT] = {
:AUTO_INDENT => true,
:PROMPT_I => "\033[1;31m>>\033[0m ",
:PROMPT_S => "\033[1;31m\">\033[0m ",
:PROMPT_C => "\033[1;31m?>\033[0m ",
:RETURN => "\033[1;35m=>\033[0m %s\n"
}
IRB.conf[:PROMPT_MODE] = :MY_PROMPT