I am trying to create an alias for editing `.zshrc` file. I run into an error:
the `vz` alias is set as follows:
before this I tried this without the sudo at the front, and ran into:
Please help. On a note, I would love not having to type the password to edit config files!
Code:
debian% vz [sudo] password for kamil: sudo: /home/kamil/.zshrc: command not found
Code:
alias vz="sudo $EDITOR $HOME/.zshrc" # edit .zshrc
Code:
zsh: permission denied: /home/kamil/.zshrc
Statistics: Posted by Manifesto4217 — 2025-03-01 20:13 — Replies 2 — Views 97