You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
z/tmux.go

27 lines
498 B
Go

package main
import (
"strings"
3 years ago
Z "github.com/rwxrob/bonzai/z"
"github.com/rwxrob/help"
3 years ago
"github.com/rwxrob/vars"
)
var tmux = &Z.Cmd{
Name: `tmux`,
Summary: `make tmux updates`,
3 years ago
Commands: []*Z.Cmd{help.Cmd, tmuxUpdate, vars.Cmd},
}
var tmuxUpdate = &Z.Cmd{
Name: `update`,
Summary: `update the onscreen status`,
Call: func(_ *Z.Cmd, args ...string) error {
msg := strings.Join(args, " ")
return Z.Exec(
"tmux", "-L", "live", "set", "-g", "status-right", msg,
)
},
}