But I want to know if I should be ignoring
.bash_profileand those other files, and putting everything into the.zshrcfile? A lot of instructions online for installation or system set-up stuff have me adding stuff to.bash_rc, etc. I assume if I’m into usingzsh, I should be putting that stuff in.zshrc?
Esta página explica bem as diferenças , mas basicamente resume-se exatamente ao que você está dizendo; Se você estiver usando Zsh , basta colocar seus ajustes / configurações no arquivo Zsh equivalente:
-
Zsh : só se preocupa com
.zshenv,.zprofile,.zshrc,.zlogine.zlogout. -
Bash : só se preocupa com
.bashrc,.bash_profile,.bash_login,.profilee.bash_logout.
Portanto, se você estiver lendo apenas tutoriais ou guias que se referem à adição de itens a .bash_profile - como muitos usuários usam bash por padrão -, basta adicioná-los a .zprofile .