Bat: Change the default configuration directory on macOS to .config/bat

Created on 7 Dec 2018  路  5Comments  路  Source: sharkdp/bat

Change the default path to bats configuration directory to

~/.config/bat

see #151, #375 and #419

feature-request good first issue help wanted

Most helpful comment

Ok I opened an issue in directories
https://github.com/soc/directories-rs/issues/47#issue-388793645

All 5 comments

You seem to be using directories::ProjectDirs to get the config directory. Do you want just set it in bat or do you prefer to try to add this option to the directories crate upstream?

It would be great if that would be supported by directories, yes.

However, it seemed to me that there was no intent to change this, see https://github.com/rust-lang-nursery/cli-wg/issues/7#issuecomment-391819505 and https://github.com/rust-lang-nursery/cli-wg/issues/7#issuecomment-391874453
It might be worth asking again, though.

Ok I opened an issue in directories
https://github.com/soc/directories-rs/issues/47#issue-388793645

There does not seem to be much motion on this issue. I don't really want to write a new crate because the various dir crates seem pretty fractured already, so I'll write a quick fix in bat and hopefully this gets fixed upstream at some point.

Changes by @lavifb released in v0.10.0.

Was this page helpful?
0 / 5 - 0 ratings