fix(prompt_dir): converting drive letters to uppercase

This commit is contained in:
Hoang Minh Huong 2025-10-28 23:11:06 +07:00
parent fb5bcf70fd
commit b0b98ed439
1 changed files with 1 additions and 1 deletions

View File

@ -2134,7 +2134,7 @@ prompt_dir() {
local cur_path=$_p9k__cwd local cur_path=$_p9k__cwd
if [[ $_p9k_os == Windows && $cur_path != *:* ]]; then if [[ $_p9k_os == Windows && $cur_path != *:* ]]; then
# Change /c/current/path to /c:/current/path # Change /c/current/path to /c:/current/path
cur_path="${_p9k__cwd:0:2}:${_p9k__cwd:2}" cur_path="${_p9k__cwd:0:2:u}:${_p9k__cwd:2}"
fi fi
_p9k_url_escape $cur_path _p9k_url_escape $cur_path
local header=$'%{\e]8;;file://'$_p9k__ret$'\a%}' local header=$'%{\e]8;;file://'$_p9k__ret$'\a%}'