A lot of programs write their configuration files directly to their users' $HOME, making the output of ls -la an unmanageable mess.
XDG Base Directory Specification helps with keeping the home directory tidy by providing a convention that well-behaved programs can follow when deciding where to store certain types of files.
This PR introduces an attempt to add dart-cli-completion/ to $XDG_CONFIG_HOME (if set) instead of the top-level home folder. On my machine it results in ~/.config/dart-cli-completion. The behavior remains unchanged for users who have not explicitly set this variable (assuming that they don't care π).
The XDG specification should also be valid for Windows systems, but I'm not familiar enough with Windows to know whether it's a good idea to propagate this change there as well.
Type of Change
[x] β¨ New feature (non-breaking change which adds functionality)
although people currently using the tool will end up with two dart-cli-completion folders (they will have to delete the old one manually)
[ ] π οΈ Bug fix (non-breaking change which fixes an issue)
[ ] β Breaking change (fix or feature that would cause existing functionality to change)
Status
READY/IN DEVELOPMENT/HOLD
Description
A lot of programs write their configuration files directly to their users'
$HOME
, making the output ofls -la
an unmanageable mess.XDG Base Directory Specification helps with keeping the home directory tidy by providing a convention that well-behaved programs can follow when deciding where to store certain types of files.
This PR introduces an attempt to add
dart-cli-completion/
to$XDG_CONFIG_HOME
(if set) instead of the top-level home folder. On my machine it results in~/.config/dart-cli-completion
. The behavior remains unchanged for users who have not explicitly set this variable (assuming that they don't care π).The XDG specification should also be valid for Windows systems, but I'm not familiar enough with Windows to know whether it's a good idea to propagate this change there as well.
Type of Change
dart-cli-completion
folders (they will have to delete the old one manually)