ZSH的安装与使用

  1. 个人比较喜欢在linux(ubuntu)上使用zsh,它的命令提示以及命令高亮,以及对主机名的简略使我对其爱不释手。
  2. 安装zsh
    sudo apt-get install zsh
  3. 更改自己的bash(username是你的自己的系统用户名)
    sudo usermod -s /bin/zsh username
  4. 安装oh-my-zsh
    wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O - | sh
  5. 安装自动高亮软件zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc
source ./zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

6.安装autosuggestions

git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
vim ~/.zshrc
找到plugins,添加
plugins=(zsh-autosuggestions)
  1. 重启Terminal就可以了

这些东西每个人写的都差不多,我也是从别人那里学会了之后,写在这里,防止自己之后想用的时候忘了,找不到 。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。