阿里云做網(wǎng)站嗎營銷網(wǎng)絡(luò)推廣哪家好
ZSH 配置
- 1. 安裝 ZSH
- 2. 安裝 oh my zsh
- 3. 安裝插件
- 3.1 autojump
- 3.2 zsh-autosuggestions
1. 安裝 ZSH
sudo apt-get install zsh
完成安裝后需設(shè)置當(dāng)前用戶使用 zsh:
chsh -s /bin/zsh
重啟后即可使用
2. 安裝 oh my zsh
安裝 oh my zsh
需先安裝 git。
自動(dòng)安裝:
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
3. 安裝插件
3.1 autojump
去 GitHub 安裝 autojump
的最新版本:
https://github.com/wting/autojump
執(zhí)行:
./install.sh
根據(jù)引導(dǎo)將下面兩行加入 ~/.zshrc
中即可:
[[ -s /home/mi/.autojump/etc/profile.d/autojump.sh ]] && source /home/mi/.autojump/etc/profile.d/autojump.sh
autoload -U compinit && compinit -u
3.2 zsh-autosuggestions
用于代碼的自動(dòng)補(bǔ)全,可直接按照 GitHub 官網(wǎng)安裝即可:
https://github.com/zsh-users/zsh-autosuggestions/
步驟:
- 將倉庫拷貝進(jìn)
$ZSH_CUSTOM/plugins
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
- 將 autosuggestions 添加進(jìn)插件內(nèi):
- 在
~/.zshrc
內(nèi)找到 plugins - 添加以下命令:
plugins=( # other plugins...zsh-autosuggestions)
- 重新開一個(gè)新終端即可
- 在