Copyright: Attribution, allow others to create paper-based, and must distribute paper (based on the original license agreement with the same license Creative Commons )
The first written, lacks planning, casually recorded
system | version |
---|---|
deepin | deepin-15.10.1-amd64 |
The following installation steps are operated at normal account
1. Install zsh
sudo apt install zsh curl
2. Installation oh-my-zsh
- This step premise: to install Git
Three ways to pick, I tried to recommend the first
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
or
sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
or
wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O - | sh
2.1 switched the default shell
The first prompt to switch the default installation, no need to execute this command
chsh -s /bin/zsh
2.2 .oh-my-zsh fully licensed catalog
Without authorization, other accounts to install the plug / use themes, log errors will be reported
chmod -R 777 .oh-my-zsh
2.3 configuration file .zshrc
vim ~/.zshrc
2.3.1 skip verification unsafe directory
# 放在配置文件最前面
ZSH_DISABLE_COMPFIX="true"
2.3.2 configuration topics
- What topics View
# nangy @ nangy-vm in ~ [13:48:24]
$ ls ~/.oh-my-zsh/themes
- I want to change the topic, I use ys, clear understanding of the basic information step
# ZSH_THEME="robbyrussell"
ZSH_THEME="ys"
2.4 .zshrc the file to take effect
# nangy @ nangy-vm in ~/Desktop [13:51:05]
$ source ~/.zshrc
Note: Some pits
.zshrc copy files to the root directory of other accounts
Normal user installation, switch to the root user under, did not actually take effect, so, their own research, clothed
root root heads cp, another source actually an error, simple and crude restart after actually have succeeded, I did not understand
# root @ nangy-vm in ~ [13:56:14]
$ cp /home/nangy/.zshrc ~/
# root @ nangy-vm in ~ [13:56:37]
$ source ~/.zshrc
Command prompt, but you can also choose