From 7c72860d3415c7011ac7e5879a8c855d6d299e03 Mon Sep 17 00:00:00 2001 From: Simone Fidanza Date: Thu, 2 Nov 2023 09:04:40 +0100 Subject: [PATCH] feat(yazi-plugin): retrieve HOME also on windows --- yazi-plugin/preset/utils.lua | 1 + 1 file changed, 1 insertion(+) 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