aboutsummaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2022-01-02 17:14:26 +0300
committerRoman Perepelitsa <roman.perepelitsa@gmail.com>2022-01-02 17:14:26 +0300
commit73546881235dae77f9f93e7525d63b4c1f486397 (patch)
tree1bdbc1bdd54de1c06ae069a9341e472999f17fa8 /internal/p10k.zsh
parentdd3dcfaf51d2f12ea208c0c96b2f039c0435ec00 (diff)
fix cwd handling when the current dir is '/foo\bar' (#1697)
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r--internal/p10k.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 20417687..591cff18 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -200,7 +200,7 @@ function _p9k_read_word() {
}
function _p9k_fetch_cwd() {
- _p9k__cwd=${(g:oce:)${(%):-%/}}
+ _p9k__cwd=${${${:-.}:a}:-.}
_p9k__cwd_a=${${_p9k__cwd:A}:-.}
case $_p9k__cwd in