ava-labs / avalanche-cli

Other
101 stars 60 forks source link

Completion: check for `compdef`'s existence #1357

Open hsk81 opened 8 months ago

hsk81 commented 8 months ago

In .local/share/bash-completion/completions/avalanche.sh check for the existence of compdef, since otherwise every time a non-zsh shell is launched an error is thrown:

if command -v compdef &> /dev/null
then
    compdef _avalanche avalanche 
fi
arturrez commented 5 months ago

this is caused by https://github.com/spf13/cobra/issues/1529