mbrubeck / compleat

Generate command-line completions using a simple DSL.
http://limpet.net/mbrubeck/2009/10/30/compleat.html
472 stars 18 forks source link

command not found #26

Closed Hifilo closed 1 year ago

Hifilo commented 1 year ago

hello. I installed in zsh, however I get this error when opening terminal

compleat: command not found
compleat: command not found
compleat: command not found
compleat: command not found
compleat: command not found

My setup in bashrc:

source ~/.bash_completion.d/compleat_setup

in zshrc :


plugins=(compleat)
source $ZSH/oh-my-zsh.sh

modified autoload:


#from 
        autoload -U compinit && compinit -u

#to
        autoload -Uz compinit bashcompinit && compinit bashcompinit -u
        source ~/.bash_completion.d/compleat_setup

what am i missing?

mbrubeck commented 1 year ago

I'm not sure exactly what's wrong... Some possible things to check:

  1. Is compleat installed to a director that is in your $PATH? (Can you run compleat from the shell manually? What is the output of which compleat?)
  2. In your shell config files, is this directory added to your $PATH before the compleat_setup script is run, or after?
Hifilo commented 1 year ago
2. In your shell config files, is this directory added to your `$PATH` before the `compleat_setup` script is run, or after?

This seemed to be the culprit.

in my .zshrc I had export PATH=$HOME/bin:/usr/local/bin:$PATH

but not export PATH=$PATH:/home/wavey1/.local/bin

adding path corrected the issue