Skip to content

zsh: occasionally seeing "command not found: complete" when loading subs #31

@bradical

Description

@bradical

I'm using:

  • ITerm2(Build 1.0.0.20120203)
  • zsh
  • oh-my-zsh

and am sometimes seeing the following errors when opening new terminal windows or tabs:

/Users/bradley/Dropbox/bin/csd/libexec/../completions/csd.bash:14: command not found: complete
/Users/bradley/Dropbox/bin/sp/libexec/../completions/sp.bash:14: command not found: complete
/usr/local/Cellar/rbenv/0.3.0/libexec/../completions/rbenv.bash:14: command not found: complete

I'm assuming rbenv is also a sub so this is probably related.

The only thing I've noticed is that when my terminal profile is set to change into a particular directory on load, this tends to happen.

Here's the relevant portion of my .zshrc file:

... stuff before the end of the file ...
plugins=()

. ~/Dropbox/bin/z/z.sh
source ~/Dropbox/bin/ssh.bash
source ~/Dropbox/bin/mysql.bash
source ~/Dropbox/bin/du.bash

eval "$(/Users/bradley/Dropbox/bin/csd/bin/csd init -)"
eval "$(/Users/bradley/Dropbox/bin/sp/bin/sp init -)"
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi # rbenv, ruby-build

source $ZSH/oh-my-zsh.sh

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions