Tab completion for mpv shows an error message.
Current behavior
Typing mpv <TAB> displays the following error:
mpv (eval):1: command not found: _mpv
(eval):1: command not found: _mpv
(eval):1: command not found: _mpv
Expected behavior
Available completions for the command _or_ at least the file names in the current directory.
.zshrc)export ZSH=$HOME/.oh-my-zsh
export EDITOR=vim
#export EDITOR="/usr/local/bin/mate -w"
# export HISTCONTROL=ignoreboth:erasedups
HISTORY_IGNORE="(ls|cd|pwd|exit|cd ..)"
. ~/.aliases
ZSH_THEME="robbyrussell"
HYPHEN_INSENSITIVE="true"
DISABLE_AUTO_UPDATE="true"
COMPLETION_WAITING_DOTS="true"
DISABLE_UNTRACKED_FILES_DIRTY="true"
plugins=(
git brew node npm osx python pip
)
source $ZSH/oh-my-zsh.sh
export LANG=en_US.UTF-8
# Set Spaceship ZSH as a prompt
autoload -U promptinit; promptinit
prompt spaceship
Spaceship version: 3.6.0
Zsh version: zsh --version
zsh 5.6.1 (x86_64-apple-darwin17.7.0)
Zsh framework: oh-my-zsh
Zsh plugin manager: None
Terminal emulator: iTerm2
Operating system: macOS 10.13.6 (17G65)

Possible solution
none
googling for the error shows this: https://github.com/lukechilds/zsh-better-npm-completion/issues/7
npm install -g spaceship-prompt
Spaceship is not doing anything about completions, it is only about rendering the prompt, look for problems with how the zsh completions are being set up for you (I assume via oh-my-zsh).
@maximbaz: thanks for the heads up! Looks like this is a duplicate of https://github.com/robbyrussell/oh-my-zsh/issues/2092.
Running upgrade_oh_my_zsh fixed the issue.
Most helpful comment
@maximbaz: thanks for the heads up! Looks like this is a duplicate of https://github.com/robbyrussell/oh-my-zsh/issues/2092.
Running
upgrade_oh_my_zshfixed the issue.