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

Missing ~/.ash/queries on install #11

Open
Schroedingers-Hat opened this issue Nov 13, 2018 · 1 comment · May be fixed by #17
Open

Missing ~/.ash/queries on install #11

Schroedingers-Hat opened this issue Nov 13, 2018 · 1 comment · May be fixed by #17

Comments

@Schroedingers-Hat
Copy link

After using make build_c; make install_c or make and make install, then following the sourcing instructions I received FAILED TO FIND A FILE TO PARSE! upon using ash_query.

Digging through the source I eventually found reference to $HOME/.ash/queries. touching this file made everything work as expected.

@dajoha
Copy link

dajoha commented Jan 15, 2020

I just had the same problem, but instead of simply touching $HOME/.ash/queries, I copied it from the system installed files:

cp /usr/local/etc/advanced-shell-history/queries $HOME/.ash/

Thanks to this, you can take profit of the pre-configured ash_query queries (DEMO, CWD, RCWD, ME)

tyler-ham added a commit to tyler-ham/advanced-shell-history that referenced this issue Dec 18, 2020
…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
2 participants