From 633eebfd2a13ad39302489de704a886d4c7941e0 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Tue, 1 Apr 2025 11:29:00 +0200 Subject: [PATCH] Support ~ in globs --- utils/modifycommand.go | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/modifycommand.go b/utils/modifycommand.go index fa372c9..7b76e60 100644 --- a/utils/modifycommand.go +++ b/utils/modifycommand.go @@ -110,6 +110,7 @@ func AggregateGlobs(commands []ModifyCommand) map[string]struct{} { globs := make(map[string]struct{}) for _, command := range commands { for _, glob := range command.Files { + glob = strings.Replace(glob, "~", os.Getenv("HOME"), 1) globs[glob] = struct{}{} } }