diff --git a/yazi-plugin/preset/utils.lua b/yazi-plugin/preset/utils.lua index 187c17de..8e9989a3 100644 --- a/yazi-plugin/preset/utils.lua +++ b/yazi-plugin/preset/utils.lua @@ -30,6 +30,7 @@ end function utils.readable_path(path) local home = os.getenv("HOME") + home = home and home or os.getenv("USERPROFILE") if home == nil then return path elseif string.sub(path, 1, #home) == home then