wangp / bower

A curses terminal client for the Notmuch email system
Other
119 stars 11 forks source link

Enhancement: Passing configuration file as parameter and/or environment variable #34

Closed rseichter closed 5 years ago

rseichter commented 5 years ago

I was surprised to see that the configuration file seems to be hardcoded as ~/.config/bower/bower.conf. I would appreciate being able to use a command line parameter and/or an environment variable to specify different configuration files:

# Method 1
$ bower --config ~/.bowerrc

# Method 2
$ BOWER_CONFIG="/some/dir/bower.config" bower
wangp commented 5 years ago

I've added support for a BOWER_CONFIG environment variable. Also, the XDG base directory specification was previously supported but undocumented.

rseichter commented 5 years ago

Thank you. I would not have expected to see this change within a single day after filing the issue. 👍