-
-
Notifications
You must be signed in to change notification settings - Fork 977
Home
The prompt character still turns red if the last command didn't exit with 0, but adds another magenta ❯ to show that it was the previous command that failed. (psst my colors are different ;) )
replace:
PROMPT='%(?.%F{magenta}.%F{red})❯%f '
with:
PROMPT='%(?.%F{magenta}.%F{red}❯%F{magenta})❯%f '
Add in prompt_pure_setup()
zstyle ':prezto:module:editor:info:keymap:primary' format "❯%f"
zstyle ':prezto:module:editor:info:keymap:alternate' format "❮%f"
and change the PROMPT
line to
PROMPT='%(?.%F{magenta}.%F{red})${editor_info[keymap]} '
It works using prezto, still looking for a generic solution
@sapegin’s Bash Prompt
Bash prompt and color theme for Terminal.app.
@therealklanni's Purity fork
Purity is my own spin on Pure. It favors a more compact current working directory, important details on the main prompt line, and extra Git indicators (modified, staged, deleted, renamed, unmerged, and untracked items) in addition to the unique features of Pure (namely: the "pull ready" indicator and execution time feedback).