• Home
  • About
    • Moon photo

      Moon

      a development programmer, backend, Java.

    • Learn More
    • Github
  • Posts
    • All Posts
    • All Tags
  • Projects

oh-my-zsh

17 Aug 2021

Reading time ~1 minute

Linux Mint shell配置

安装git、zsh

sudo apt-get install -fy git zsh

安装oh-my-zsh

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

安装插件

cd /home/pl/.oh-my-zsh/custom/plugins
git clone https://github.com/zsh-users/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions

启用插件

vim ~/.zshrc
# 定位到plugins
plugins=(git zsh-syntax-highlighting zsh-autosuggestions)
source ~/.zshrc

其他配置

安装powerline字体
sudo apt-get install -fy fonts-powerline
修改主题
sudo vim ~/.zshrc
# 修改主题robbyrussell为agnoster
source ~/.zshrc

切换shell

chsh -s $(which zsh)


Linux Share Tweet +1