tycho-kirchner / shournal

Log shell-commands and used files. Snapshot executed scripts. Fully automatic.
GNU General Public License v3.0
173 stars 9 forks source link

No results found matching the query #10

Open CLZHANG96 opened 10 months ago

CLZHANG96 commented 10 months ago

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 commented 10 months ago

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

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 commented 10 months ago

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