From facaccc38156a14a49a7bc04298b0fdcd22ccf8f Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Tue, 17 Dec 2024 16:41:46 +0100 Subject: [PATCH] preserve-cwd --- zsh/ohmyzsh/themes/tforgione.zsh-theme | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zsh/ohmyzsh/themes/tforgione.zsh-theme b/zsh/ohmyzsh/themes/tforgione.zsh-theme index 20c412e..da25a5b 100644 --- a/zsh/ohmyzsh/themes/tforgione.zsh-theme +++ b/zsh/ohmyzsh/themes/tforgione.zsh-theme @@ -79,14 +79,14 @@ fi git_prompt_info_no_space() { current="$PWD" while [ "$PWD" != "/" ] && [ ! -d "$PWD/.git" ]; do - cd .. + builtin cd .. done if [ -f "$PWD/.gitskipprompt" ]; then return fi - cd "$current" + builtin cd "$current" local info=$(git_prompt_info) if [ ! -z $info ]; then echo " $info"