File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 1313 "default" : " /usr/local/bin/" ,
1414 "description" : " Filesystem location of the circleci binary." ,
1515 "type" : " string"
16+ },
17+ "completions" : {
18+ "default" : true ,
19+ "description" : " Attempt to install shell completions for bash & zsh." ,
20+ "type" : " boolean"
1621 }
1722 },
1823 "customizations" : {
Original file line number Diff line number Diff line change @@ -27,6 +27,17 @@ check_packages() {
2727}
2828
2929export DEBIAN_FRONTEND=noninteractive
30- check_packages curl ca-certificates
30+ check_packages curl ca-certificates bash-completion
3131
3232curl -fLSs https://raw.githubusercontent.com/CircleCI-Public/circleci-cli/master/install.sh | bash
33+
34+ if [ " $COMPLETIONS " = " true" ]; then {
35+ # circleci bash completion
36+ mkdir -p /etc/bash_completion.d
37+ circleci completion bash > /etc/bash_completion.d/circleci
38+
39+ # circleci zsh completion
40+ if [ -e " /usr/share/zsh/vendor-completions" ]; then
41+ circleci completion zsh > /usr/share/zsh/vendor-completions/_circleci
42+ fi
43+ } fi
You can’t perform that action at this time.
0 commit comments