Spaceship-prompt: Tab completion broken for mpv

Created on 6 Oct 2018  路  2Comments  路  Source: denysdovhan/spaceship-prompt

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.

Relevant Zsh configuration (.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

Environment

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)

Screenshot

mpv-broken-autocomplete

Possible solution
none
googling for the error shows this: https://github.com/lukechilds/zsh-better-npm-completion/issues/7

Installation Method:

npm install -g spaceship-prompt

question

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_zsh fixed the issue.

All 2 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xhaythemx picture xhaythemx  路  3Comments

maccius picture maccius  路  3Comments

AlecRust picture AlecRust  路  3Comments

gillesdemey picture gillesdemey  路  3Comments

MatthiasJ picture MatthiasJ  路  4Comments