I'm using Mac OS Monetary and Recently installed Git for a project. I followed the below steps to activate the Git Autocomplete feature for Git commands and Branch names. I got success in my Previous Macbook with MacOS Catalina, but it's not working on Monetary. The Error is, "zsh: permission denied: /Users/username/.zshrc" when I run "~/.zshrc
"
Steps Are:
Run in Terminal
curl -o git-completion.bash https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash
curl -o _git https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.zsh
~/.zshrc
Update the File with
zstyle ':completion:*:*:git:*' script ~/.zsh/git-completion.bash
fpath=(~/.zsh $fpath)
autoload -Uz compinit && compinit
And Run
source ~/.zshrc
How can I solve this?
.zshrc
, i.eautoload -Uz compinit && compinit
– Dizon