From d1f3baaccea6889d6b561d0ae70d7667810281c6 Mon Sep 17 00:00:00 2001 From: eeemsi Date: Mon, 5 May 2025 13:59:01 +0200 Subject: [PATCH] style (zshrc): only display the latest name of the folder --- zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zshrc b/zshrc index f9b7d6f..b27e412 100644 --- a/zshrc +++ b/zshrc @@ -96,9 +96,9 @@ precmd() { # check if vcs_info_msg_0_ is empty to avoid an anoying space in the prompt if [[ -z ${vcs_info_msg_0_} ]]; then - PS1='%B%K{white}%F{black}%(3~|…/%2~|%~)%k%f %%%b ' + PS1='%B%K{white}%F{black}%(3~|…/%1~|%~)%k%f %%%b ' else - PS1='%B%K{white}%F{black}%(3~|…/%2~|%~)%k%f %F{green}${vcs_info_msg_0_}%f %%%b ' + PS1='%B%K{white}%F{black}%(3~|…/%1~|%~)%k%f %F{green}${vcs_info_msg_0_}%f %%%b ' fi }