Commit 630dbfa
Add XDG support for history file (#1031)
This commit implements XDG directory support for this gem's history file
in accordance with the rules outlined in #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: #1031 (comment)1 parent bd9a813 commit 630dbfa
1 file changed
+13
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
157 | 164 | | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
163 | 170 | | |
164 | 171 | | |
165 | 172 | | |
| |||
0 commit comments