lazygit icon indicating copy to clipboard operation
lazygit copied to clipboard

MacOS config.yml PATH in ~/.config

Open oscarmlage opened this issue 4 years ago • 3 comments

The ~/.config/lazygit/config.yml is not taken into account in MacOS

Tried to add some config stuff to ~/.config/lazygit/config.yml in MacOS but it didn't work out. It worked when the config was added to ~/Library/Application Support/lazygit/config.yml as it says in the docs.

Proposal

Would it be posible to add ~/.config/lazygit/config.yml as a valid path for the config in MacOS too?, taking in account some kind of priority if both are present.

Additional context

I mean, as some other software reads the config from there probably it's more friendly to have the config in ~/.config too, thinking about dealing with dotfiles, put them in a repo, maintaining etc...

oscarmlage avatar Jan 12 '22 13:01 oscarmlage

I second this...I tried both

/Users/Ryan/Library/Application Support/Ryan/lazygit/config.yml
/Users/Ryan/Library/Application Support/lazygit/config.yml
/Users/Ryan/.config/lazygit/config.yml

but none of them work on my Catalina mac :\

RyannDaGreat avatar May 06 '22 01:05 RyannDaGreat

export XDG_CONFIG_HOME="$HOME/.config"

works for me.

Ryooooooga avatar May 07 '22 04:05 Ryooooooga

export XDG_CONFIG_HOME="$HOME/.config"

works for me.

It worked for me too with this setup.

0123takaokeita avatar Sep 14 '22 15:09 0123takaokeita