mirror of https://github.com/rwxrob/z
Add inital files, starting to mig bash scripts
parent
af91a0c78d
commit
75b9660e00
@ -0,0 +1,25 @@
|
|||||||
|
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,
|
||||||
|
)
|
||||||
|
},
|
||||||
|
}
|
Loading…
Reference in New Issue