circleci-cli icon indicating copy to clipboard operation
circleci-cli copied to clipboard

ZSH completion doesn't work

Open amitlevy21 opened this issue 3 years ago • 0 comments

Meta:

CircleCI CLI Version:

❯ circleci version
0.1.20629+ec7d8d3 (release)

Operating System:

Fedora 36

CircleCI CLI Diagnostic:

❯ circleci diagnostic

---
CircleCI CLI Diagnostics
---
Debugger mode: false
Config found: /home/amit/.circleci/cli.yml
API host: https://circleci.com
API endpoint: graphql-unstable
OK, got a token.
Trying an introspection query on API...
Ok.
Hello, Amit Levy.

Current behavior:

# initial shell is zsh
❯ bash
[amit@fedora]$ source <(circleci completion bash)
[amit@fedora]$ circleci # here I pressed tab to check auto-complete
completion  context     follow      info        namespace   orb         runner      update
config      diagnostic  help        local       open        policy      setup       version
[amit@fedora]$ exit
exit
❯ source <(circleci completion zsh)
❯ circleci # here I also pressed tab, but get the current files in dir, auto-complete doesn't work
CHANGELOG.md        docker-compose.yml  jest.config.ts      README.md           src/                yarn-error.log
config/             Dockerfile          node_modules/       schema/             tests/              yarn.lock
cz.yaml             Dockerfile.dev      package.json        scripts/            tsconfig.json

Expected behavior:

It should auto-complete for zsh just like it did for bash

When did this begin / Was this previously working?:

Been using the cli for about a year, I don't recall this was working, but maybe I'm wrong

Additional Information:

amitlevy21 avatar Aug 23 '22 04:08 amitlevy21