completion
Output shell completion code for the specified shell (bash or zsh).
Examples
# bash <= 3.2
source /dev/stdin <<< "$(linkerd completion bash)"
# bash >= 4.0
source <(linkerd completion bash)
# bash <= 3.2 on osx
brew install bash-completion # ensure you have bash-completion 1.3+
linkerd completion bash > $(brew --prefix)/etc/bash_completion.d/linkerd
# bash >= 4.0 on osx
brew install bash-completion@2
linkerd completion bash > $(brew --prefix)/etc/bash_completion.d/linkerd
# zsh
source <(linkerd completion zsh)
# zsh on osx / oh-my-zsh
linkerd completion zsh > "${fpath[1]}/_linkerd"