mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-23 22:30:07 +00:00
24 lines
No EOL
520 B
Bash
24 lines
No EOL
520 B
Bash
# Check if the 'cdk' command is available in the system's PATH
|
|
if ! command -v cdk >/dev/null 2>&1; then
|
|
cdk() { npx -- cdk "$@" }
|
|
fi
|
|
|
|
###-begin-cdk-completions-###
|
|
_cdk_yargs_completions()
|
|
{
|
|
local reply
|
|
local si=$IFS
|
|
IFS=$'
|
|
' reply=($(COMP_CWORD="$((CURRENT-1))" COMP_LINE="$BUFFER" COMP_POINT="$CURSOR" cdk --get-yargs-completions "${words[@]}"))
|
|
IFS=$si
|
|
_describe 'values' reply
|
|
}
|
|
compdef _cdk_yargs_completions cdk
|
|
###-end-cdk-completions-###
|
|
|
|
export ZSH_AUTOSUGGEST=true
|
|
|
|
|
|
|
|
autoload -U compinit
|
|
compinit |