From ddc77df3de6c145f4b887148af93512e01c13d9f Mon Sep 17 00:00:00 2001 From: Ajeet D'Souza <98ajeet@gmail.com> Date: Fri, 28 Oct 2022 18:35:15 +0530 Subject: [PATCH] Don't hide output from chpwd hooks --- CHANGELOG.md | 1 + templates/zsh.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a8645a6..c765038 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Zsh: completions clashing with `zsh-autocomplete`. - Fzf: 'invalid option' on macOS. - PowerShell: handle UTF-8 encoding correctly. +- Zsh: don't hide output from `chpwd` hooks. ## [0.8.3] - 2022-09-02 diff --git a/templates/zsh.txt b/templates/zsh.txt index c850847..58679a9 100644 --- a/templates/zsh.txt +++ b/templates/zsh.txt @@ -19,7 +19,7 @@ function __zoxide_pwd() { # cd + custom logic based on the value of _ZO_ECHO. function __zoxide_cd() { # shellcheck disable=SC2164 - \builtin cd -- "$@" >/dev/null {%- if echo %} && __zoxide_pwd {%- endif %} + \builtin cd -- "$@" {%- if echo %} && __zoxide_pwd {%- endif %} } {{ section }}