-
Notifications
You must be signed in to change notification settings - Fork 212
Shell Completions
Kelly Brazil edited this page Jun 15, 2022
·
4 revisions
Automatic shell completions for Bash and Zsh are available starting in jc
v1.20.1.
If your system is already set up for Bash or Zsh completions, simply run the following commands to enable jc
completions. See the Appendix below for initial completion setup for Bash and Zsh.
$ jc -B > /etc/bash_completion.d/jc
$ jc -B > /usr/local/etc/bash_completion.d/jc
% jc -Z > "${fpath[1]}/_jc"
If you don't already have completions set up for your system, see the following for installation and configuration.
Run the following, then restart your terminal.
# yum install bash-completion bash-completion-extras
Run the following, then restart your terminal.
$ sudo apt update
$ sudo apt install bash-completion
Run the following two commands, then restart your terminal.
$ brew install bash-completion
$ echo "[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion" >> ~/.bash_profile
Run the following commands, then restart your terminal.
% brew install zsh-completions
% echo "autoload -U compinit && compinit" >> ~/.zshrc
See the Brew formulae page for zsh-completions if you run into any issues.