oracle / oracle/oci-cli

/Users/atael/lib/oci_autocomplete.sh:12: command not found: complete

Open
#571 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
669
Forks
236
Avg merge
1m
Merged PRs (30d)
4

Description

When adding autocomplete to my .zprofile file:

[[ -e "/Users/atael/lib/oci_autocomplete.sh" ]] && source "/Users/atael/lib/oci_autocomplete.sh"

I get the following error when opening a new terminal window:

/Users/atael/lib/oci_autocomplete.sh:12: command not found: complete

I'm on MacOS 12.4 where zsh is the default shell.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting /Users/atael/lib/oci_autocomplete.sh at line 12 and the zsh configuration shown in the report. Reproduce the problem by opening a new zsh terminal, then verify that the autocomplete setup loads without a command-not-found error and that completion works.

Written by the indexing model from the issue text.

Assessment

Tech stack
zsh
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.