Skip to content

fj0r/powerline.nu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 

Repository files navigation

NU_POWERLINE

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: (ansi cyan)
        }
        reverse: true
        separator: '@'
    }
    power set time {
        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.theme.separator_bar.char = "-"
## }}}
power set time {
    style: compact
}
power set kube {
    theme: {
        context: (ansi cyan)
    }
    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|center>' 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

Others

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published