技术解析

求教如何设置 zsh 补全
0
2021-07-13 04:04:45
idczone

比如运行 brew info youtube-dl,下面显示

youtube-dl: stable 2015.02.11 (bottled), HEAD
http://rg3.github.io/youtube-dl/
/usr/local/Cellar/youtube-dl/2015.02.11 (8 files, 948K) *
  Poured from bottle
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/youtube-dl.rb
==> Dependencies
Optional: rtmpdump ✘
==> Options
--with-rtmpdump
    Build with rtmpdump support
--HEAD
    Install HEAD version
==> Caveats
To use post-processing options, `brew install ffmpeg` or `brew install libav`.

Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

zsh completion has been installed to:
  /usr/local/share/zsh/site-functions

http://stackoverflow.com/questions/14970728/homebrews-git-not-using-completion
或者自己source下就好.

https://github.com/robbyrussell/oh-my-zsh
有现成的,用就好。

那我用的是 zsh 怎么办?正如 http://stackoverflow.com/questions/14970728/homebrews-git-not-using-completion所说的。

直接 source 提示 can only be called from completion function ,求教怎么正确的 source

oh-my-zsh不算zsh么……

数据地带为您的网站提供全球顶级IDC资源