View source: R/prompt-powerline.R
new_prompt_powerline | R Documentation |
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.
new_prompt_powerline(
parts = list("status", "memory", "loadavg", "path", "devtools", "git"),
colors = powerline_colors(parts)
)
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. |
make_prompt_powerline()
returns a function that you can
use with set_prompt()
.
Other example prompts:
prompt_devtools()
,
prompt_fancy()
,
prompt_git()
,
prompt_mem()
,
prompt_runtime()
,
prompt_status()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.