ddworken / hishtory

Your shell history: synced, queryable, and in context
https://hishtory.dev
MIT License
2.43k stars 41 forks source link

Getting precommand and postcommand output. How to disable? #187

Open bimp opened 4 months ago

bimp commented 4 months ago

Today I noticed getting the following output on executing any commands:

$ (master) echo "hishtory"
echo "hishtory"
__hishtory_precommand
hishtory
__hishtory_postcommand;
__hishtory_precommand

Not sure what I did. How do I disable this? Couldn't find anything in help or the readme. Thanks.

bimp commented 4 months ago

FYI:

$ (master) bash --version; hishtory status
bash --version; hishtory status
__hishtory_precommand
GNU bash, version 5.0.17(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
__hishtory_precommand
hiSHtory: v0.277
Enabled: true
Secret Key: bb94e3c6-fe80-45f7-8b19-bc198fc08f74
Commit Hash: c3f9ba3bab26879d84ce52699d33c19523a9c4d8
__hishtory_postcommand;
__hishtory_precommand
bimp commented 4 months ago

Update. I was playing around with my bash command and noticed that after executing the command:

$ bash

which I believe sources my ~/.bashrc file, the precommand and postcommand output stopped. What's going on?