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

Installer un-symlinked my .zshrc #49

Open
phord opened this issue Nov 25, 2021 · 5 comments
Open

Installer un-symlinked my .zshrc #49

phord opened this issue Nov 25, 2021 · 5 comments

Comments

@phord
Copy link

phord commented Nov 25, 2021

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.

@zthxxx
Copy link
Owner

zthxxx commented Nov 25, 2021

sorry, I hadn't considered this situation that '.zshrc' is a symlink ☹️. I'll fix it

@zthxxx
Copy link
Owner

zthxxx commented Nov 25, 2021

@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

@phord
Copy link
Author

phord commented Nov 25, 2021

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.

@zthxxx
Copy link
Owner

zthxxx commented Nov 30, 2021

@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

@420219496
Copy link

因为模组文件默认安装在/usr/lib/node_modules里面吧

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

3 participants