Installation with fisher:
fisher install zzhaolei/transient.fish
A picture is worth a thousand words.
transient.mp4
Tip: If you enable transient prompt, take advantage of two-line prompt. You'll get the benefit of extra space for typing commands without the usual drawback of reduced scrollback density. Sparse prompt (with an empty line before prompt) also works great in combination with transient prompt.
Support transient_status
and transient_pipstatus
variables, which are aliases of status
and pipstatus
.
Define the transient_prompt_func
function. In this function, you can do what you want.
Define the transient_rprompt_func
function. In this function, you can do what you want.