From 62330242359a44535190bafa2df1771bd5245607 Mon Sep 17 00:00:00 2001 From: nbsp Date: Sun, 5 Jan 2025 21:46:01 +0200 Subject: [PATCH] fully expand env --- app/menu.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/menu.go b/app/menu.go index 44e1009..1bcd409 100644 --- a/app/menu.go +++ b/app/menu.go @@ -119,7 +119,7 @@ func newFeels(state *ui.State) { vt.TERM = os.Getenv("TERM") vt.Attach(state.PostEvent()) vt.Focus() - err := vt.Start(exec.Command(os.Getenv("EDITOR"), path.Join(os.Getenv("HOME"), ".ttbp/entries", time.Now().Format("20060102")+".txt"))) + err := vt.Start(exec.Command(os.ExpandEnv(os.Getenv("EDITOR")), path.Join(os.Getenv("HOME"), ".ttbp/entries", time.Now().Format("20060102")+".txt"))) if err != nil { panic(err) }