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

[MacOS] zsh: histdb-update-outcome: function definition file not found #115

Open
antwal opened this issue Oct 28, 2021 · 1 comment
Open

Comments

@antwal
Copy link

antwal commented Oct 28, 2021

Hi,

the plugins not working on my install, but not understand:

~ > sqlite3 -version
3.36.0 2021-06-18 18:36:39

~ > zsh --version
zsh 5.7.1 (x86_64-apple-darwin19.0)

my steps:

git clone https://github.com/larkery/zsh-histdb $HOME/.oh-my-zsh/custom/plugins/zsh-histdb
echo "HISTDB_TABULATE_CMD=(sed -e $'s/\x1f/\t/g')" >> $HOME/.zshrc
source $HOME/.oh-my-zsh/custom/plugins/zsh-histdb/sqlite-history.zsh
autoload -Uz add-zsh-hook

when type any commands i receive the error:

zsh: histdb-update-outcome: function definition file not found

my db folder:

~/.histdb > ls -al
total 4256
drwxr-xr-x   5 antwal  staff      160 29 Ott 01:24 .
drwxr-xr-x+ 45 antwal  staff     1440 29 Ott 01:42 ..
-rw-r--r--   1 antwal  staff    45056 29 Ott 01:24 zsh-history.db
-rw-r--r--   1 antwal  staff    32768 29 Ott 01:24 zsh-history.db-shm
-rw-r--r--   1 antwal  staff  1701592 29 Ott 01:42 zsh-history.db-wal

Thanks.

@antwal
Copy link
Author

antwal commented Oct 31, 2021

Hi,

I found the problem and solved it by modifying the plugin:

replace this line:

add-zsh-hook precmd _histdb_update_outcome

with:

precmd_functions+=(histdb-update-outcome)

the problem is solved and everything works correctly

Thanks.

antwal added a commit to antwal/zsh-histdb that referenced this issue Oct 31, 2021
paulreimer added a commit to paulreimer/zsh-histdb that referenced this issue Mar 2, 2022
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

1 participant