Ability to change Shell

This commit is contained in:
Stanislav Pavlovichev
2018-10-25 21:52:59 +03:00
parent 967a87a65f
commit a26fc9169c
5 changed files with 22 additions and 7 deletions

View File

@@ -45,6 +45,7 @@ func main() {
invertFlag = flag.Bool("i", false, "invert default colors")
scaleCpu = flag.Bool("scale-cpu", false, "show cpu as % of system total")
connectorFlag = flag.String("connector", "docker", "container connector to use")
defaultShell = flag.String("shell", "", "default shell")
)
flag.Parse()
@@ -87,6 +88,10 @@ func main() {
config.Toggle("scaleCpu")
}
if *defaultShell != "" {
config.Update("shell", *defaultShell)
}
// init ui
if *invertFlag {
InvertColorMap()