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

Fix #11: Add a reference to ASH_CFG_SYSTEM_QUERY_FILE env var when loading queries #17

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tyler-ham
Copy link

Without this, running ash_query -Q results in:
FAILED TO FIND A FILE TO PARSE!

This is because the C version of get_query is looking for queries in
/etc/ash/queries and ~/.ash/queries, but not the default installation
path of /user/local/etc/advanced-shell-history/queries, which is
referenced in the ASH_CFG_SYSTEM_QUERY_FILE environment variable.

This commit adds the file referenced by this environment variable to the
list of queries files to load.

Fixes #11

…ries`

Without this, running `ash_query -Q` results in:
FAILED TO FIND A FILE TO PARSE!

This is because the C version of `get_query` is looking for queries in
`/etc/ash/queries` and `~/.ash/queries`, but not the default installation
path of `/user/local/etc/advanced-shell-history/queries`, which is
referenced in the `ASH_CFG_SYSTEM_QUERY_FILE` environment variable.

This commit adds the file referenced by this environment variable to the
list of queries files to load.

Fixes barabo#11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing ~/.ash/queries on install
1 participant