Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3474

help with setting an alias for editing .zshrc

$
0
0
I am trying to create an alias for editing `.zshrc` file. I run into an error:

Code:

debian% vz        [sudo] password for kamil: sudo: /home/kamil/.zshrc: command not found
the `vz` alias is set as follows:

Code:

alias vz="sudo $EDITOR $HOME/.zshrc" # edit .zshrc
before this I tried this without the sudo at the front, and ran into:

Code:

zsh: permission denied: /home/kamil/.zshrc
Please help. On a note, I would love not having to type the password to edit config files!

Statistics: Posted by Manifesto4217 — 2025-03-01 20:13 — Replies 2 — Views 97



Viewing all articles
Browse latest Browse all 3474

Trending Articles