question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Following pipx completions guidelines for Mac ends with `command not found: compdef` failure

See original GitHub issue

Describe the bug Following pipx completions guidelines for Mac ends with command not found: compdef failure.

How to reproduce

% pipx completions

Follow the guidelines. Namely:

% autoload -U bashcompinit
% bashcompinit
% eval "$(register-python-argcomplete pipx)"
complete:13: command not found: compdef

Expected behavior Successfully registered autocomplete on Mac’s Zsh.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
m-aciekcommented, Feb 7, 2021

Actually, after changing bashcompinit to compinit I got:

% source ~/.zshrc 
(eval):46: command not found: complete

Putting both bashcompinit and compinit into .zshrc finally solved it.

1reaction
cs01commented, Mar 8, 2022

Nice, glad you got it working. If there are any changes or doc updates you think would be good, feel free to make a PR.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"complete:13: command not found: compdef"…
I am new to using Terminal but I have noticed when I do open it I am always greeted with an error message...
Read more >
My command line says `complete:13: command not found
I am using zsh shell. Zsh Compdef error. Compdef is basically a function used by zsh for load the auto-completions. The completion system...
Read more >
Pipx installation Problem / eth-brownie installation error
when i run this command - $ pipx install eth-brownie. I'm getting this error - $ bash: pipx: command not found.
Read more >
pipx — Install and Run Python Applications in Isolated ...
Shell completions are available by following the instructions printed with this command: pipx completions. For more details, see the installation ...
Read more >
Mac solved command not found: compdef - Thys Michels Blog
Follow these steps to install nvm using homebrew https://www.wdiaz.org/how-to-install-nvm-with-homebrew/ Confirm echo $HOME/.nvm returns ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found