1

I installed yadr and prezto to style the zsh prompt.

I'm using the steeef theme: https://github.com/sorin-ionescu/prezto/blob/master/modules/prompt/functions/prompt_steeef_setup

How do I change the format of the prompt:

from --> taciano at asimov in

to --> taciano@asimov

I've tried to modify and I couldn't. I can't find where to make this adjustment.

  • 1
    Either set `PS1` to a different value or edit the prompt definition directly, see `info zsh "prompt themes"` – Panki Mar 15 '21 at 08:05

1 Answers1

2
  1. Use the steef theme as the basis for a new theme, say, taciano:
    % cd $ZPREZTODIR/modules/prompt/functions
    % cp prompt_steeef_setup prompt_taciano_setup
    
  2. In your .zpreztorc file, find
    zstyle ':prezto:module:prompt' theme <value>
    
    and change <value> to taciano.
  3. In the file $ZPREZTODIR/modules/prompt/functions/prompt_taciano_setup, change the line that sets the PROMPT variable.
  4. Restart your shell.
Marlon Richert
  • 3,715
  • 5
  • 30