安装并使用zsh
首先我们安装zsh,并切换默认的shell为zsh,之后重启进入zsh
sudo apt-get install zsh
chsh -s /bin/zsh
sudo shutdown -r now
之后我们安装oh-my-zsh,因为网络的原因所以设置了代理
wget -e https_proxy=192.168.65.100:7890 https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh
chmod +x install.sh
./install.sh
然后再安装zsh命令自动补全插件zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
之后编辑~/.zshrc
文件,修改ZSH_THEME="simple"
,并且在plugins
里面添加zsh-autosuggestions
配置
ZSH_THEME="simple"
plugins=(git zsh-autosuggestions)
本文链接:
https://www.nosuchfield.com/2023/10/18/Installation-and-use-of-zsh/
版权声明:
本博客所有文章均采用
CC BY-NC-SA 4.0 许可协议,转载请注明出处!