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
$env.NU_POWER_DECORATOR = '<power|plain>'
power mode and plain mode$env.NU_POWER_FRAME = '<default|fill>'
two line prompt (experimental)
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
- source return
null
for hiding - proxy stat invalid in plain mode
- implement
power eject
-
$env.config.menus[].maker
can be restored - support color theme
- refactor: theme/decorator/frame/schema