Home

Awesome

configuration

use power/power.nu
    use power/plugin/git.nu *
    power inject 0 1 {source: git,   color: '#504945'}
    use power/plugin/kube.nu *
    power inject 1 2 {source: kube,  color: '#504945'} {
        theme: {
            context: cyan
        }
        config: {
            reverse: true
            separator: '@'
        }
    }
    power set time {
        config: { style: compact }
    }
power init

or

use power
use power/plugin/git.nu *
use power/plugin/kube.nu *
$env.NU_POWER_SCHEMA = [
    [
        [source, color];
        [pwd, xterm_grey23]
        [git, xterm_grey30]
    ],
    [
        [source, color];
        [proxy, xterm_grey39]
        [host, xterm_grey30]
        [kube, xterm_grey23]
        [time, xterm_grey27]
    ]
]
## {{{ Simplified style
$env.NU_POWER_DECORATOR = 'plain'
$env.NU_POWER_FRAME = 'fill'
#$env.NU_POWER_CONFIG.separator_bar.char = "-"
## }}}
power set time {
    config: { style: compact }
}
power set kube {
    theme: {
        context: cyan
    }
    config: {
        reverse: true
        separator: '@'
    }
}
power init

$env.NU_POWER_SCHEMA support configuring dynamically

mode

benchmark

$env.NU_POWER_BENCHMARK = true

Then execute a few commands casually, such as pressing the Enter key continuously. then execute

Execute power timelog to analyze the results.

power analyze

todo