powerful but friendly backup program that runs in your tray, powered by restic devins.page/restray
go restic system-tray
2

Configure Feed

Select the types of activity you want to include in your feed.

chore(shell): cd home dir -> config dir

intergrav (Jun 28, 2026, 8:46 AM EDT) d6a598f3 92ba5c03

+4 -3
+4 -3
config.go
··· 330 330 fmt.Fprintf(script, "trap 'kill $TAIL_PID 2>/dev/null; wait $TAIL_PID 2>/dev/null' INT\n") 331 331 fmt.Fprintf(script, "wait $TAIL_PID\n") 332 332 } 333 - fmt.Fprintf(script, "cd ~\n") 333 + fmt.Fprintf(script, "cd %q\n", configDir()) 334 334 fmt.Fprintf(script, "exec %s -l\n", shell) 335 335 script.Close() 336 336 os.Chmod(script.Name(), 0700) ··· 353 353 fmt.Fprintf(script, "echo.\r\n") 354 354 fmt.Fprintf(script, "powershell -Command \"Get-Content -Path '%s' -Wait\"\r\n", tailFile) 355 355 } 356 + fmt.Fprintf(script, "cd /d %q\r\n", configDir()) 356 357 fmt.Fprintf(script, "cmd /k\r\n") 357 358 script.Close() 358 359 cmd = exec.Command("cmd", "/c", "start", "", script.Name()) ··· 372 373 } 373 374 var script string 374 375 if tailFile != "" { 375 - script = fmt.Sprintf("clear; echo '%s'; echo '%s'; tail -n +1 -f %q; exec %s", consoleMsg, tailMsg, tailFile, shell) 376 + script = fmt.Sprintf("cd %q; clear; echo '%s'; echo '%s'; tail -n +1 -f %q; exec %s", configDir(), consoleMsg, tailMsg, tailFile, shell) 376 377 } else { 377 - script = fmt.Sprintf("clear; echo '%s'; exec %s", consoleMsg, shell) 378 + script = fmt.Sprintf("cd %q; clear; echo '%s'; exec %s", configDir(), consoleMsg, shell) 378 379 } 379 380 cmd = exec.Command(term, "-e", shell, "-c", script) 380 381 cmd.Env = env