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

XDG Base Directory Specification #516

Closed
sullyj3 opened this issue Nov 27, 2014 · 6 comments

Comments

Projects
None yet
4 participants
@sullyj3
Copy link

commented Nov 27, 2014

Is there any chance of xdg support for ackrc? I'd much prefer the config file under ~/.config/ack/config or ~/.config/ackrc than cluttering up my home directory.

@petdance

This comment has been minimized.

Copy link
Collaborator

commented Dec 1, 2014

I don't know what XDG is, but you can have a per-project .ackrc in the root of the project, and you can also specify the location of your ackrc with the ACKRC environment variable.

@ZuBB

This comment has been minimized.

Copy link

commented Jan 20, 2015

Is priority of per-project .ackrc higher than value of ACKRC environment variable?

@hoelzro

This comment has been minimized.

Copy link
Collaborator

commented Jan 20, 2015

I believe ACKRC takes precedence

@hoelzro

This comment has been minimized.

Copy link
Collaborator

commented Jan 20, 2015

nope, I'm wrong; ACKRC overrides the location for your user ackrc, so it comes after the project ackrc.

@ZuBB

This comment has been minimized.

Copy link

commented Jan 20, 2015

Is there any chance that you will change that behaviour?

@petdance

This comment has been minimized.

Copy link
Collaborator

commented Jan 20, 2015

Probably not. It's been the way it is for years.

@ZuBB

This comment has been minimized.

Copy link

commented Jan 20, 2015

Ok, let me give an example

we set git opts globally (per user) in ~/.gitconfig. However we can overwrite some opts for a particular project via $PROJECT_HOME/.git/config.

git searches its config in home dir. if nothing found, he also looks into $HOME/.config/git/ (standart by X.org for all settings/rc files, ie XDG).

With help of ACKRC we are able to have "global" .ackrc in .config. but in that case it not possible override some things at project level

@hoelzro

This comment has been minimized.

Copy link
Collaborator

commented Jan 20, 2015

I thought that ACKRC just replaces the user ackrc; it doesn't stop ack from looking for project ackrcs. So you can set ACKRC=$HOME/.config/ackrc and still retain your ability to make project-specific overrides.

@petdance

This comment has been minimized.

Copy link
Collaborator

commented Mar 17, 2017

Closing.

@petdance petdance closed this Mar 17, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.