-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Support XDG for .agignore
, like Git does for .gitignore
#1020
Comments
Very good idea, everyone is moving away from the root of the home directory, BTW, did you forget to include the |
@ssbarnea Hiding is required only when in user's home folder. Once it's inside |
I'm starting to embrace XDG in my setup and found this issue as a result. What's interesting is that
|
In the meantime it's possible to create a workaround for this issue by creating a shell alias that makes use of ag's e.g. alias ag='ag --path-to-ignore $XDG_CONFIG_HOME/ag/ignore' |
Please support an XDG location for
.agignore
like Git does for its.gitignore
.Benefits
Logic
Use first found in this order:
"${HOME}/.agignore"
exists"${XDG_CONFIG_HOME:=$HOME/.config}/ag/ignore"
exists.The text was updated successfully, but these errors were encountered: