new_prompt_powerline {prompt} | R Documentation |
This is a Powerline-like prompt
Description
It is inspired by the https://github.com/powerline/powerline project. This prompt uses some Unicode glyphs that work best with the fonts specifically modified for Powerline: https://github.com/powerline/fonts It also works best on consoles that support ANSI colors.
Usage
new_prompt_powerline(
parts = list("status", "memory", "loadavg", "path", "devtools", "git"),
colors = powerline_colors(parts)
)
Arguments
parts |
List of strings and functions. Strings are for the
built-in powerline pieces, functions are arbitrary functions with
four parameters:
|
colors |
Colors of the parts. Builtin parts have default colors, but you can change them. |
Value
make_prompt_powerline()
returns a function that you can
use with set_prompt()
.
See Also
Other example prompts:
prompt_devtools()
,
prompt_fancy()
,
prompt_git()
,
prompt_mem()
,
prompt_runtime()
,
prompt_status()