jimhester / per-directory-history

Per directory history for zsh, as well as global history, and the ability to toggle between them with ^G.
zlib License
260 stars 36 forks source link

'fc -p' deprives $1 of following functions #31

Open SleepyBag opened 5 years ago

SleepyBag commented 5 years ago

I was trying to use a plugin named 'zsh-you-should-use'. It add a preexec hook, which runs after add zshaddhistory hook. The problem is, the preexec hook function depends on the parameter $1 passed by zsh. However, when per-directory-history is toggled on, the $1 parameter of that function turns out to be an empty string. And if I delete the 117th line of per-directory-history.zsh, this problem disappears. So I think this is a problem with 'fc -p'. But I don't exactly understand the mechanism of zsh so I'm not able to go deeper in this problem. Could you please have a look onto this question?

hoblin commented 4 years ago

Any updates on that?

ghostsquad commented 2 years ago

Any updates on this?