Installer un-symlinked my .zshrc
phord opened this issue · 5 comments
My .zshrc is a symlink to my git-tracked version of the real .zshrc, like this:
cd $HOME
ln -s .oh-my-zsh/my.zshrc .zshrc
After running the installer for zsh-history-enquirer, my symlink was gone and a static text file named .zshrc was in its place.
The rest of the install didn't work either, so I've given up trying. But unlinking my file was unexpected.
sorry, I hadn't considered this situation that '.zshrc' is a symlink
@phord Fixed and support symlink in zsh-history-enquirer@1.2.4.
Sorry for the bad experience, and thanks for your feedback, I hope you will try to install it again. 🙏
npm i -g zsh-history-enquirer@^1.2.4
I did manage to install it manually, but it would have been nice to have the manual install instructions available.
I had two problems with the install. First, since it wanted to install in /usr or something like that, I had to run sudo npm ...
. But this meant it didn't install into my $HOME install when it ran the postinstall script. In fact, the post install didn't do anything since my root user shell is bash.
I looked say the post install script and it's quite simple. So I ran the steps it skipped manually in my shell. This nearly worked, but it pointed the symlink to the wrong place. So then I had to find where it should be pointing -- this is where manual install instructions would have been helpful -- and then I recreated it manually.
And now, finally it works.
Before all this I had to install npm, and that brought in 285 packages and 20MB. Holy cow! That's nearly a nonstarter right there. Not an issue for someone using node already, but I doubt I'll be willing to install this on all my shell environments.
Nice job, though. Nice idea.
@phord thanks for use, but I don’t understand why you need run with “sudo”? And as I known, there isn't anything will install to /usr
因为模组文件默认安装在/usr/lib/node_modules里面吧