Hide Forgot
Description of problem: I want to change the history depending on what I'm currently working on, so I built a program which change the $HISTFILE variable. It works fine, but I am obliged to open a new terminal for it to be taken into account. history -r outputs this: fc: event not found: -r Version-Release number of selected component (if applicable): zsh 4.3.11 (x86_64-redhat-linux-gnu) How reproducible: Every time Steps to Reproduce: 1. launch zsh 2. type history -r Actual results: fc: event not found: -r new $HISTFILE is not taken into account Expected results: no output, and $HISTFILE taken into account
Hi Gregoire, this issue seems to be fixed with a more current version of Zsh. I'm at least not able to reproduce it on F16 with Zsh 4.3.14 from updates-testing. Can you confirm this? Regards, Dominic
No, it still does not work for me, but the problem seems to go away when I remove my zshrc. I'm going to search what line is responsible for that.
It seems that the problem comes from oh-my-zsh, the problem goes away when I don't source this script : https://github.com/robbyrussell/oh-my-zsh/blob/master/oh-my-zsh.sh
Well, looks quite clear to me what's happening here. Oh-my-zsh is aliasing history to fc: https://github.com/robbyrussell/oh-my-zsh/blob/master/lib/aliases.zsh You're using a completely other command with that. You could comment out the causing line and maybe consider reporting the issue to the oh-my-zsh author. I hope you are well with closing this bug here. :)
Totally well, and thanks for the explanation, I found a similar bug report here: https://github.com/robbyrussell/oh-my-zsh/issues/739 , I referenced this bug report in it.