bash

command module
v0.0.0-...-dffe54d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2023 License: MIT Imports: 9 Imported by: 0

README

Bash - run commands on a regular basis

This plugin allows you to run bash commands on a schedule and store the result

How to configure the plugin

You need to add the following config structure in the plugin[].config field of the ~/.gowerline/gowerline.yaml file

---
commands:
  date:
    cmd: "date"
    interval: 30
    highlightGroup: "information:regular"
  kubeContext:
    cmd: "kubectl config get-contexts --no-headers | grep '*' | awk '{ print $3 }'"
    interval: 5
    highlightGroup: "information:regular"

Example powerline configuration

This is where you show how a user can use your segment

{
    "function": "gowerline.gowerline.gwl",
    "priority": 60,
    "args": {
        "function": "bash",
        "cmd": "kubeContext"
    }
}

Highlight groups used

Any highlight group you put in the config

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL