1,首先需要安装git 和zsh
yum install -y git zsh
2.下载离线安装包
暂时先空着。
3.解压安装包
tar -xvf oh-my-zsh.tar
4.安装和配置
4.1 首先切换到zsh
$ cd oh-my-zsh/ $ zsh This is the Z Shell configuration function for new users, zsh-newuser-install. You are seeing this message because you have no zsh startup files (the files .zshenv, .zprofile, .zshrc, .zlogin in the directory ~). This function can help you with a few settings that should make your use of the shell easier. You can: (q) Quit and do nothing. The function will be run again next time. (0) Exit, creating the file ~/.zshrc containing just a comment. That will prevent this function being run again. (1) Continue to the main menu. --- Type one of the keys in parentheses --- Aborting. The function will be run again next time. To prevent this, execute: touch ~/.zshrc
4.2安装:
% ./tools/install.sh
Looking for an existing zsh config...
Using the Oh My Zsh template file and adding it to /home/credit/.zshrc.
Time to change your default shell to zsh:
Do you want to change your default shell to zsh? [Y/n] y
Changing your shell to /bin/zsh...
Changing shell for credit.
Shell changed.
Shell successfully changed to '/bin/zsh'.
__ __
____ / /_ ____ ___ __ __ ____ _____/ /_
/ __ \/ __ \ / __ `__ \/ / / / /_ / / ___/ __ \
/ /_/ / / / / / / / / / / /_/ / / /_(__ ) / / /
\____/_/ /_/ /_/ /_/ /_/\__, / /___/____/_/ /_/
/____/ ....is now installed!
Before you scream Oh My Zsh! look over the `.zshrc` file to select plugins, themes, and options.
• Follow us on Twitter: https://twitter.com/ohmyzsh
• Join our Discord community: https://discord.gg/ohmyzsh
• Get stickers, t-shirts, coffee mugs and more: https://shop.planetargon.com/collections/oh-my-zsh
4.3配置:
vim .zshrc
修改:ZSH_THEME="robbyrussell" -> ZSH_THEME="ys"
plugins=(git) -> plugins=(git zsh-syntax-highlighting zsh-autosuggestions)
4.4.使配置生效:
source .zshrc
标签:__,oh,my,zshrc,离线,____,zsh From: https://www.cnblogs.com/lambertwe/p/17263847.html