3
Hidden Features in osx.plugin.zsh
source link: https://fann.im/blog/2012/12/09/hidden-features-in-osx-plugin-zsh/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Hidden Features in osx.plugin.zsh
Dec 9, 2012
oh-my-zsh 自带了很多插件,其中 osx.plugin.zsh 里有不少好东西。
cdf
快速在终端打开当前 Finder 所在目录。之前的方法是用 cdto,缺点是会另外开一个终端窗口;或者鼠标拖动目录到终端再 cd。cdf 就省力很多,也是这个插件最喜欢的一个命令。trash
替换 rm,文件被移动到废纸篓而不是真正删除,避免误操作。alias rm='trash'
pfd/pfs
打印当前 Finder 所在目录,一般配合 cdf 来用。pushdf
pushd 寄存当前 Finder 所在目录。quick-look
调用 QuickLook 查看文件,配合 QLMarkdown.qlgenerator 快速预览 Markdown 文件。man-preview
把 man 信息生成 pdf 然后用预览打开。tab/split_tab/vsplit_tab
新建、切割终端 tab,不太习惯切割终端,这个用的很少。
Was this page helpful?
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK