1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-22 12:20:07 +00:00

fix cwd handling when the current dir is '/foo\bar' (#1697)

This commit is contained in:
Roman Perepelitsa 2022-01-02 15:14:26 +01:00
parent dd3dcfaf51
commit 7354688123

View file

@ -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