koallen / dotfiles

My collection of dotfiles
3 stars 0 forks source link

oh-my-zsh setup script overwrite .zshrc file #9

Open koallen opened 1 year ago

koallen commented 1 year ago

also, make it not jump into oh my zsh after setup (since the bootstrap script still has other things to do)

koallen commented 1 year ago

May need to just copy .zshrc.pre-oh-my-zsh back to .zshrc

koallen commented 1 year ago

Actually, environment files are available to control the installation behavior, RUNZSH=no KEEP_ZSHRC=yes is needed.

koallen commented 1 year ago

From install script

# Other options:
#   CHSH       - 'no' means the installer will not change the default shell (default: yes)
#   RUNZSH     - 'no' means the installer will not run zsh after the install (default: yes)
#   KEEP_ZSHRC - 'yes' means the installer will not replace an existing .zshrc (default: no)
#
# You can also pass some arguments to the install script to set some these options:
#   --skip-chsh: has the same behavior as setting CHSH to 'no'
#   --unattended: sets both CHSH and RUNZSH to 'no'
#   --keep-zshrc: sets KEEP_ZSHRC to 'yes'