oh my zsh安裝配置(國內(nèi)可用)
安裝zsh
dnf 改為系統(tǒng)中軟件下載工具命令
dnf install zsh
安裝oh my zsh
克隆這個(gè)項(xiàng)目到本地(前提是你得有裝git)
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
創(chuàng)建一個(gè)zsh的配置文件
注意:如果你已經(jīng)有一個(gè)~/.zshrc文件的話,建議你先做備份允扇。使用以下命令
cp ~/.zshrc ~/.zshrc.orig
然后開始創(chuàng)建zsh的配置文件
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
設(shè)置zsh為你的默認(rèn)的shell
chsh -s /bin/zsh
重啟并開始使用你的zsh (打開一個(gè)新的終端窗口便可…)
oh-my-zsh皮膚
https://github.com/romkatv/powerlevel10k
自動(dòng)補(bǔ)全插件
下載 incr 自動(dòng)補(bǔ)全插件 http://mimosa-pudica.net/src/incr-0.2.zsh
將插件放在 oh-my-zsh 自定義插件目錄中
打開 oh-my-zsh 配置文件
vim ~/.zshrc
在 plugins
中添加 incr
在配置文件結(jié)束添加:
source $ZSH/custom/plugins/incr/incr*.zsh
更新配置
source ~/.zshrc