Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thoughts on checking ~/.confg/gitui or $XDG_CONFIG_HOME/gitui on mac before defaulting to the existing dir? #317

Closed
nerdrew opened this issue Oct 8, 2020 · 6 comments · Fixed by #379
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@nerdrew
Copy link

nerdrew commented Oct 8, 2020

Many terminal apps use ~/.config/<app-name> even on mac. I assume other also have ~/.confg (or $XDG_CONFIG_HOME/) checked into VCS somewhere. It'd be nice to have my gitui config live with all my other terminal app configs :)

Happy to open a PR if this is welcome.

@extrawurst
Copy link
Owner

I would need more input from more Mac users on this.
@jonstodle what are your 2c on this?

@extrawurst extrawurst added help wanted Extra attention is needed question Further information is requested labels Oct 8, 2020
@jonstodle
Copy link
Contributor

I honestly expect terminal apps to put config in either ~/ directly or (preferably) in ~/.config/<app name>. Logs and temp files I still expect to be put in their idiomatic macOS locations.

@terhechte
Copy link
Contributor

Very longtime Mac user here; I was puzzled to find that the configuration resides in ~/Library.. as that is normally reserved for non-terminal GUI apps. Terminal apps nowadays prefer ~/.config (compared to the ~/. that used to be the default aeons ago)

@extrawurst
Copy link
Owner

I love it, special treatment everywhere... so we can use .config on macOS without any conditions?

@non-descriptive
Copy link

looks like XDG directories are conventional just among devs, otherwise it should fallback to recommended apple fs guide.

@shawnohare
Copy link

I symlink most of my configs with a stow-like bash script, and greatly appreciate apps that use XDG on Unix-like systems so that my my linking is consistent across OSes. The vast majority of the apps I use follow XDG, but there's a few outliers that prove annoying when I have to use a mac (e.g., for work).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants