Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add XDG support for history file (ruby#1031)
This commit implements XDG directory support for this gem's history file in accordance with the rules outlined in ruby#1031: > For the history file: > > 1. prefer `~/.rdbg_history` if present, > 2. else, `$XDG_DATA_HOME/rdbg/history` if `$XDG_DATA_HOME` is set¹ > > ¹ There'd need to be a check for this file path. If it exists, great! > If not, create the path `$XDG_DATA_HOME/rdbg` and touch > `$XDG_DATA_HOME/rdbg/history`. See: ruby#1031 (comment)
- Loading branch information