buo / homebrew-cask-upgrade

A command line tool for upgrading every outdated app installed by Homebrew Cask
MIT License
2.4k stars 90 forks source link

Using persistent config file for execution #174

Open ondrejfuhrer opened 3 years ago

ondrejfuhrer commented 3 years ago

Description

In order to allow changing default configuration for user execution, the default config is stored in user home directory. Any additional options passed to the command have preference.

Closes #156

Actions taken

CC: @muescha

z0rc commented 3 years ago

Please do not put configuration dotfiles directly into user home dir. XDG Base Dir Spec is more than a decade old, majority of cli apps use it, like git for example.

Configuration files should be placed into $XDG_CONFIG_HOME with fallback to $HOME/.config is var isn't set. Or if it's entirely macOS specific, use $HOME/Library/Application Support for this.