OhMyZsh学习笔记

Sunmy Lv5

安装

1
2
3
4
5
6
sudo apt update
sudo apt install zsh
sudo apt install wget git
sh -c "$(wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
chsh -s $(which zsh)

插件

命令自动提示

1
2
3
4
5
wget http://mimosa-pudica.net/src/incr-0.2.zsh
mkdir ~/.oh-my-zsh/plugins/incr
mv incr-0.2.zsh ~/.oh-my-zsh/plugins/incr
echo 'source ~/.oh-my-zsh/plugins/incr/incr*.zsh' >> ~/.zshrc
source ~/.zshrc

autojump

1
sudo apt install autojump

将 autojump 添加到插件列表中,例如:

1
2
3
4
5
6
7
8
vim ~/.zshrc

plugins=(
git
autojump
)

source ~/.zshrc
1
2
3
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting

参考链接

https://zhuanlan.zhihu.com/p/62501175

  • 标题: OhMyZsh学习笔记
  • 作者: Sunmy
  • 创建于 : 2023-07-30 16:56:57
  • 更新于 : 2025-06-29 21:05:24
  • 链接: https://ldspdvsun.github.io/cmchvp8fr000mh0gbg50vg0ps/
  • 版权声明: 版权所有 © Sunmy,禁止转载。
评论