fully expand env

trunk
nbsp 2025-01-05 21:46:01 +02:00
parent 9eac46a2aa
commit 6233024235
No known key found for this signature in database
GPG Key ID: 7184AC1C9835CE48
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}