mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2026-09-18 00:10:08 +00:00
work around bugs in WSL where it /proc/pid/cwd reports an alias drive
This commit is contained in:
+5
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user