achannarasappa / ticker

Terminal stock ticker with live updates and position tracking
GNU General Public License v3.0
4.94k stars 266 forks source link

When looking in XDG_CONFIG_HOME YAML config file shouldn't have dot prefix #40

Open cpjolicoeur opened 3 years ago

cpjolicoeur commented 3 years ago

When storing configuration files in XDG_CONFIG_HOME, it's not typical to also have the configuration file be a hidden file.

e.g.

~/.ticker.yaml
~/.config/ticker/ticker.yaml

This issue is just a placeholder to make the config file loader a bit more robust in how it search/loads the config file to allow for a bit more leeway. The README does note the file being called .ticker.yaml in both cases, but it would also be nice (perhaps) to allow for both styles.

boreq commented 3 years ago

I agree this is highly unusual and confusing. It took me a long while to find the config file. Additionally the file should be placed in a separate directory ticker within $XDG_CONFIG_HOME. This allows for flexibility when adding further configuration.