From 1f8de84278d086e088a4f76682c57e4fdcfcf606 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Fri, 9 Oct 2020 08:06:35 +0200 Subject: [PATCH] fix: add HKLM to the registry locations --- segment_path.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/segment_path.go b/segment_path.go index c7a2081e..b60cd38a 100755 --- a/segment_path.go +++ b/segment_path.go @@ -58,7 +58,8 @@ func (pt *path) init(props *properties, env environmentInfo) { func (pt *path) getShortPath() string { pwd := pt.env.getcwd() mappedLocations := map[string]string{ - "HKCU:": pt.props.getString(WindowsRegistryIcon, "HK:"), + "HKCU:": pt.props.getString(WindowsRegistryIcon, "REGISTRY"), + "HKLM:": pt.props.getString(WindowsRegistryIcon, "REGISTRY"), "Microsoft.PowerShell.Core\\FileSystem::": "", pt.env.homeDir(): pt.props.getString(HomeIcon, "~"), }