打造花里胡哨的终端
更新 package
sudo apt update && sudo apt upgrade
安装 zsh
sudo apt install zsh -y
安装 oh-my-zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/
;master/tools/install.sh -O - | zsh || true
安装命令补全和高亮插件
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/plugins/zsh-autosuggestions
sed -i’s/plugins=(git)/plugins=(git zsh-autosuggestions zsh-syntax-highlighting)/g’ ~/.zshrc
将 zsh 设置为默认的 shell
chsh -s /bin/zsh
1 | git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k |
1 | open ~/.zshrc |
vim .zshrc
编译安装 zsh 高版本
1 | wget https://jaist.dl.sourceforge.net/project/zsh/zsh/5.8/zsh-5.8.tar.xz |
安装 autojump
1 | git clone git://github.com/joelthelion/autojump.git |
如果有权限不足的问题
最笨的方法
1 | # 找到所有的地址 |