mirror of
https://github.com/sdkman/sdkman-cli.git
synced 2026-01-31 01:32:55 -05:00
Installation instructions
zsh
Create a new folder for completions:
mkdir -p ~/.zsh/completions
Copy the file /etc/sdk.zsh_completion from the location where sdk is installed to the folder ~/.zsh/completions/ and rename it to _sdk:
cp /path/to/etc/sdk.zsh_completion ~/.zsh/completions/ \
mv ~/.zsh/completions/sdk.zsh_completion ~/.zsh/completions/_sdk
Then add the following lines to your .zshrc file:
fpath=(~/.zsh/completions $fpath)
autoload -U compinit && compinit