Oh My Zsh 是一个用来管理 ZSH插件的框架, 我们可以用它很轻松的安装和管理各种插件; 但是时间久了配置文件就会多了一堆不知道干啥的插件, 然后就忘记一堆很有用的功能. 鉴于此, 整理一下当前使用的插件以及对应的功能.
安装
|
|
插件
当前正在使用的插件列表:
|
|
命令补全&搜索类🔍
-
zsh-autosuggestions: Fish-like fast/unobtrusive autosuggestions for zsh.
-
zsh-history-substring-search:This is a clean-room implementation of the Fish shell's history search feature, where you can type in any part of any command from history and then press chosen keys, such as the UP and DOWN arrows, to cycle through matches.
-
history:Provides a couple of convenient aliases for using the
history
command to examine your command line history.-
h
alias tohistory
; -
hs
alias tohistory | grep
; -
hsi
alias tohistory | grep -i
(i means case-insensitive)
-
工作目录跳转
-
z:This plugin defines the z command that tracks your most visited directories and allows you to access them with very few keystrokes.
-
zsh-interactive-cd: A fish-like interactive tab completion for the
cd
command. -
fasd:
Fasd
offers quick access to files and directories.Alias Command Description v fasd -f -e "$EDITOR"
List frequent/recent files matching the given filename. o fasd -a -e xdg-open
List frequent/recent files and directories matching. j fasd_cd -d -i
cd with interactive selection
文件复制
-
cp: Defines a
cpv
function that usesrsync
so that you get the features and security of this command. -
copyfile: Define
copyfile <filename>
to copy file to system clipboard. -
copydir: Define
copydir
to copy cwd to system clipboard. -
copybuffer:Binds the ctrl-o keyboard shortcut to a command that copies the text that is currently typed in the command line ($BUFFER) to the system clipboard.
Application
-
mosh: This plugin allows SSH tab completion for mosh hostnames.
-
pip: This plugin adds completion for pip, the Python package manager.
Alias
-
git: The git plugin provides many aliases and a few useful functions.
-
docker-compose: This plugin provides completion for docker-compose as well as some aliases for frequent docker-compose commands.
-
vscode: This plugin provides useful aliases to simplify the interaction between the command line and VS Code or VSCodium editor.
-
common-aliases: This plugin creates helpful shortcut aliases for many commonly used commands.
-
rsync: Adds aliases for frequent rsync commands.
Alias Command rsync-copy rsync -avz --progress -h
rsync-move rsync -avz --progress -h --remove-source-files
rsync-update rsync -avzu --progress -h
rsync-synchronize rsync -avzu --delete --progress -h
语法高亮
-
fast-syntax-highlighting: Feature rich syntax highlighting for Zsh.
-
colored-man-pages: Adds colors to man pages.
其它
- man:This plugin adds a shortcut to insert man before the previous command.
Shortcut Description Esc + man add man before the previous command to see the manual for this command