giann / croissant

🥐 A Lua REPL and debugger
MIT License
408 stars 10 forks source link

xdg base dir compliance #10

Open Susensio opened 10 months ago

Susensio commented 10 months ago

Hi there, I'm enjoying croissant so far, the only thing it's bugging me is the history being saved in $HOME Following XDG_BASE_DIR spec, the following directories should be used:

config_file=${XDG_CONFIG_HOME:-$HOME/.config}/croissant/config
hist_file=${XDG_DATA_HOME:-$HOME/.local/share}/croissant/history

Could this be configurable?