Commit 29d3055
committed
shell: Allow to configure history and init files path via env vars
Allow to customize the location of the shell history files via the
BEANQUERY_HISTORY environment variables. The environment variable name
has been chosen to resemble the ones used by sqlite3 and psql, but
with the BEANQUERY_ prefix.
Similarly, allow to customize the location of the init file via the
BEANQUERY_INIT environment variable.
Furthermore, respect the XGD_CONFIG_HOME environment variable when
determining the default location of these files.
Tilde expansion is performed on the values of all environment
variables: a leading path component equal to ~ is expanded to the
user's home directory location.
Fixes beancount#272.1 parent aa07762 commit 29d3055
1 file changed
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
181 | 182 | | |
182 | 183 | | |
183 | 184 | | |
184 | | - | |
185 | | - | |
| 185 | + | |
186 | 186 | | |
187 | | - | |
| 187 | + | |
188 | 188 | | |
189 | | - | |
| 189 | + | |
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
| 195 | + | |
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| |||
0 commit comments