arl.gitmux/config.go
Aurélien Rainone b821624bad
Set 'Clear' to #[none] (#108)
* Cosmetics

* Default 'Clear' style is now #[none]

None actually resets all attributes.

* Always append the Clear attribute to gitmux status string

Fix #107
2024-01-02 20:00:48 +01:00

26 lines
420 B
Go

package main
import (
_ "embed"
"fmt"
"gopkg.in/yaml.v3"
"github.com/arl/gitmux/tmux"
)
// Config configures output formatting.
type Config struct{ Tmux tmux.Config }
// default config (decoded in init)
var defaultCfg Config
//go:embed .gitmux.yml
var cfgBytes []byte
func init() {
if err := yaml.Unmarshal(cfgBytes, &defaultCfg); err != nil {
panic(fmt.Sprintf("default config is invalid: %v", err))
}
}