-
-
Notifications
You must be signed in to change notification settings - Fork 65
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
npm install does not write to .zshrc on Linux #135
Comments
Hi @Pound-Hash ! Thank you for bringing up this issue. Do you have any error message during the npm installation? Here are the lines of code trying to insert to your .zshrc: append_zshrc() {
info "These lines will be added to your \"${ZDOTDIR:-$HOME}/.zshrc\" file:"
code "$@"
echo "$@" >> "${ZDOTDIR:-$HOME}/.zshrc"
}
...
msg = ...
...
if append_zshrc "$msg"; then
success "Done! Please, reload your terminal."
echo
else
error "Cannot automatically insert prompt init commands."
error "Please insert these line into your \"${ZDOTDIR:-$HOME}/.zshrc\" file:"
code "$msg"
exit 1
fi It should either print "Done!" or the error message |
I don't. Here's the output:
|
Thank you @Pound-Hash for the details! I'll have a look whenever I have time to reproduce it. @all-contributors please add @Pound-Hash for bugs |
I've put up a pull request to add @Pound-Hash! 🎉 |
Same issue here. The installation does not work for Ubuntu 22.04. |
Same issue. ButI found the npm installation way works when I login as a root. While it doesn't work when I install it as a normal user, and if I try |
Describe the bug
Following the
npm
installation, no changes are made to.zshrc
.To Reproduce
npm install -g typewritten
.zshrc
Expected behavior
Changes to
.zshrc
Desktop (please complete the following information):
Additional context
My
zsh
folder abides by XDG specs, and is specified by the environment variableZDOTDIR
, pointing to~/.config/zsh
.Manual installation works.
The text was updated successfully, but these errors were encountered: