Spaceship-prompt: `command not found: add-zsh-hook`

Created on 4 Jun 2017  ·  3Comments  ·  Source: denysdovhan/spaceship-prompt

Issue

I just updated to the most recent version of spaceship-zsh-theme (2.5.0), and on shell init I have begun to get the warning: spaceship_setup:2: command not found: add-zsh-hook and
spaceship_setup:3: command not found: add-zsh-hook.

I see that these are calls in the main spaceship.zsh file (currently line 942–943) and are related to spaceship_exec_time_preexec_hook and spaceship_exec_time_precmd_hook. I tried setting SPACESHIP_EXEC_TIME_SHOW to false in my .zshrc, but the errors still pop up.

Environment

Operating system: macOS 10.12.5
Terminal emulator: iTerm Build 3.1.20170604-nightly
ZSH version: v5.3.1 (poured via Homebrew)

Relevant .zshrc

These are the config items I have for spaceship.zsh:

export ZSH_THEME="spaceship"
SPACESHIP_DIR_TRUNC=0
SPACESHIP_PROMPT_SYMBOL="❯"
SPACESHIP_GIT_PREFIX='• '
SPACESHIP_GIT_BRANCH_SHOW=false
SPACESHIP_GIT_BRANCH_COLOR="blue"
SPACESHIP_VI_MODE_COLOR="blue"
SPACESHIP_EXEC_TIME_SHOW=false
bug

All 3 comments

Awesome, thank you! 👍

@maccius just update to the latest version 😉

Just did, works great! Thanks again!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ChadTaljaardt picture ChadTaljaardt  ·  4Comments

vburojevic picture vburojevic  ·  3Comments

gabrielpedepera picture gabrielpedepera  ·  3Comments

tbekaert picture tbekaert  ·  3Comments

conradwt picture conradwt  ·  3Comments