跳到主要内容

zsh install

社区来稿 · admin由用户发布,不代表 batype 本人观点

··55 字 · 约 1 分钟

Manual Installation

Clone The Repository

    git clone https://githubfast.com/ohmyzsh/ohmyzsh.git ~/.oh-my-zsh

Optionally, Backup Your Existing ~/.zshrc File

    cp ~/.zshrc ~/.zshrc.orig

Create A New Zsh Configuration File

You can create a new zsh config file by copying the template that we have included for you.

cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

Change Your Default Shell

    which zsh
    chsh -s $(which zsh)

You must log out from your user session and log back in to see this change.