简体   繁体   English

哦,我的zsh插件“ osx”不起作用

[英]oh my zsh's plugin “osx” not work

As the title,my oh my zsh has installed autojump plugin by homebrew,but osx doesn't work,I have open the plugin named osx in the .zshrc file.eg: plugins=(osx zsh-syntax-highlighting git autojump),and the file names ~/.oh-my-zsh/plugins/osx/os.plugin.zsh is correct. 作为标题,我的zsh已通过自制软件安装了autojump插件,但是osx无法正常工作,我在.zshrc文件中打开了名为osx的插件。例如:plugins =(osx zsh-syntax-highlighting git autojump),并且文件名〜/ .oh-my-zsh / plugins / osx / os.plugin.zsh是正确的。

I use the following command feedbacked a error "zsh: command not found: quick-look". 我使用以下命令反馈了一个错误“ zsh:找不到命令:快速查看”。

$ quick-look xx.jpg

I don't know why?Could somebody give me some help?Thx. 我不知道为什么?有人可以帮我些忙吗?

You could try: 您可以尝试:

$ qlmanage -p xx.png

quick-look is a function implemented inside the osx plugin that is actually calling the qlmanage command, if the above command works for you, just create an alias in your ~/.zshrc to your convenient, some like this: quick-look是在osx插件中实现的一个函数,实际上是在调用qlmanage命令,如果上面的命令对您qlmanage ,只需在您的~/.zshrc qlmanage创建一个别名即可,就像这样:

Creating the alias: $ echo "alias 'quick-look=qlmanage -p' >> ~/.zshrc 创建别名: $ echo "alias 'quick-look=qlmanage -p' >> ~/.zshrc

Load the new changes to your current session: source ~/.zshrc 将新更改加载到当前会话中: source ~/.zshrc

Then you should be able to run: quick-look xx.png 然后,您应该可以运行: quick-look xx.png

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM