prompt (version 1.0.0)

prompt_fancy: A fancy prompt, showing probably too much information

Description

It also uses color, on terminals that support it. Is shows:

  • Status of last command.

  • Memory usage of the R process.

  • Load average of the machine.

  • Package being developed using devtools, if any.

  • Git branch and state of the working tree if within a git tree.

Usage

prompt_fancy(expr, value, ok, visible)

Arguments

expr

Evaluated expression.

value

Its value.

ok

Whether the evaluation succeeded.

visible

Whether the result is visible.

Value

prompt_fancy() returns the prompt string.

See Also

Other example prompts: new_prompt_powerline(), prompt_devtools(), prompt_git(), prompt_mem(), prompt_runtime(), prompt_status()