mirror of
https://github.com/rwxrob/z
synced 2024-11-17 03:25:52 +00:00
26 lines
471 B
Go
26 lines
471 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"strings"
|
||
|
|
||
|
Z "github.com/rwxrob/bonzai"
|
||
|
"github.com/rwxrob/bonzai/inc/help"
|
||
|
)
|
||
|
|
||
|
var tmux = &Z.Cmd{
|
||
|
Name: `tmux`,
|
||
|
Summary: `make tmux updates`,
|
||
|
Commands: []*Z.Cmd{help.Cmd, tmuxUpdate},
|
||
|
}
|
||
|
|
||
|
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,
|
||
|
)
|
||
|
},
|
||
|
}
|