Plugins for Oh My Zsh

Plugins for Oh My Zsh

四月 29, 2022

常用实用plugins列举

ohmyzsh自带

1
2
3
4
5
6
7
8
9
10
11
12
13
14
git:常用的git命令缩写
z:自动跳转
extract:一键解压,通过x命令解压任何类型的压缩文件
history:查看历史命令
sudo:esc快捷sudo
rand-quote:quote生成随机名言
fortune:冷笑话
themes:手动切换主题
gitignore:python模板
#gi python > .gitignore
cp:cpv使用rsync实现带进度条的复制功能
zsh_reload
git-open
colored-man-pages:带颜色的man

独立安装

1
2
3
4
zsh-syntax-highlighting:命令高亮
zsh-autosuggestions:命令自动补齐
#git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
autojump:快速跳转文件夹

以下为官方Wiki for plugins

This wiki is automatically published from ohmyzsh/wiki. To edit this page,
go to ohmyzsh/wiki, make your changes and submit a Pull Request.

更多使用插件:https://github.com/zsh-users
如: zsh-syntax-highlighting、zsh-autosuggestions

1
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

Oh My Zsh comes bundled with plugins, which allow you to take advantage of functionality of many sorts to your shell just by enabling them. They are
each documented in the README file in their respective plugins/ folder.

Enable a plugin by adding its name to the plugins array in your .zshrc file (found in the $HOME
directory). For example, this enables the rails, git and ruby plugins, in that order:

1
plugins=(rails git ruby)

NOTE: elements in zsh arrays are separated by whitespace (spaces, tabs, newlines…). DO NOT use commas.

Plugins

Deprecated

  • cargo: moved to the rust plugin.
  • npx: new npm versions (>=7.0.0) do not provide the same functionality.
  • osx: renamed to macos.
  • rustup: moved to the rust plugin.

Removed

  • cloudapp: removed due to deprecated API.
  • django: removed because Zsh provides a better completion for Django.
  • fedora: use dnf instead.
  • git-remote-branch: not actively maintained.
  • go: use golang instead.
  • nyan: the service that the plugin relied on is no longer available.
  • zsh_reload: functionality baked into the CLI with omz reload.
    ‘+