aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--internal/p10k.zsh6
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 591cff18..db3495e9 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -200,7 +200,11 @@ function _p9k_read_word() {
}
function _p9k_fetch_cwd() {
- _p9k__cwd=${${${:-.}:a}:-.}
+ if [[ $PWD == /* && $PWD -ef . ]]; then
+ _p9k__cwd=$PWD
+ else
+ _p9k__cwd=${${${:-.}:a}:-.}
+ fi
_p9k__cwd_a=${${_p9k__cwd:A}:-.}
case $_p9k__cwd in