kencx / keyb

Create and view custom hotkey cheatsheets in the terminal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pick up config file from $XDG_CONFIG_HOME if set

dlvhdr opened this issue · comments

I'm on a Mac, but use the XDG dirs.
A lot of apps use these directories even though its not the default mac location.
My suggestion is to use the XDG_CONFIG_HOME env var if it exists and if not fallback to ~/.config.
If that also doesn't exist, you can fallback to Application Support.
I've seen that I can use the --config flag but that means I have to use the app with an alias.

commented

I'll implement this over the weekend.

Just to check, the current behaviour is that it uses Application Support? I didn't manage to test on macOS so would like to confirm.

Yeah the current behaviour is using: "~/Library/Application Support/keyb"