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

No results found matching the query #10

Open
CLZHANG96 opened this issue Jan 2, 2024 · 2 comments
Open

No results found matching the query #10

CLZHANG96 opened this issue Jan 2, 2024 · 2 comments

Comments

@CLZHANG96
Copy link

Hey,I got in trouble with shournal.Can you please help me?This is my command and return:

Command:
SHOURNAL_ENABLE
Return:
"shournal bash integration - ERROR: Commands with spaces are set to be ignored from history. Please disable that, e.g. HISTCONTROL=ignoredups or HISTCONTROL=''

Then I tried to fix it :
export HISTCONTROL=ignoredups

Then I run the example command:
cat aa > foo
shournal --query --wfile foo

RETURN:
No results found matching the query.

@tycho-kirchner
Copy link
Owner

Hi. From the given information it is a bit hard to say what's the problem here 😅. I have some guesses though:

  • you did not call SHOURNAL_ENABLE after adjusting HISTCONTROL
  • you are using the fanotify backend and the line source /usr/share/shournal/SOURCE_ME.bash is not part of your ~/.bashrc
  • you are in a working directory excluded from observation (see ~/.config/shournal/config.ini section File write-events)

If that doesn't help you can enable debugging by calling SHOURNAL_SET_VERBOSITY dbg and SHOURNAL_ENABLE afterwards. When pasting the output here, please also include your Linux distribution, the way how shournal was installed as well as the content of your config file.
I encourage you to read the README-shell-integration if you haven't done so yet.
A final note - HISTCONTROL should not be exported 😉

@CLZHANG96
Copy link
Author

Hi.Thaks for your help,it's so complicated for me,I'll try later.

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

No branches or pull requests

2 participants