From 13debdbce810075fc6488b4778f4bcdf15f22af6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Co=C3=AAlho?= Date: Sat, 17 Nov 2018 11:52:20 -0300 Subject: [PATCH] Autoload add-zsh-hook prior to call it The proper way to use zsh hooks is to autoload the function before using it --- guri.zsh-theme | 2 ++ 1 file changed, 2 insertions(+) diff --git a/guri.zsh-theme b/guri.zsh-theme index 18916c4..c227132 100644 --- a/guri.zsh-theme +++ b/guri.zsh-theme @@ -160,6 +160,8 @@ guri-ret-status() { echo "%(?:%{$fg_bold[green]%}$GURI_PROMPT_SYMBOL:%{$fg_bold[red]%}$GURI_PROMPT_SYMBOL) " } +autoload -Uz add-zsh-hook + add-zsh-hook chpwd guri-run-dotfile add-zsh-hook precmd guri-venv-indicator