From aa4acee487aae231082d5b31c34af9409f941f1b Mon Sep 17 00:00:00 2001 From: pote Date: Wed, 8 Jun 2022 09:38:07 -0300 Subject: [PATCH] Update to work with any tmux path that is installed Homebrew seems to have changed the path where it installs these things, ta hardcoding the executable makes it not work in my new environment --- go.mod | 3 +++ main.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 go.mod diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..a7951a9 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/lucasefe/ta + +go 1.18 diff --git a/main.go b/main.go index ad67579..e16dfb6 100644 --- a/main.go +++ b/main.go @@ -21,7 +21,7 @@ var ( ) func main() { - tmux = "/usr/local/bin/tmux" + tmux = "tmux" defaultSession = path.Base(os.Getenv("PWD")) flag.StringVar(&config, "f", ".ta", "the ta config file") flag.StringVar(&session, "s", defaultSession, "session name")