Change ZSH terminal prompt TEST


Change ZSH terminal prompt

You can test what prompt you like by running the following command in the terminal – `PROMPT='%/ %# '`

My preferred basic prompt – PROMPT='%[email protected]%1~ %# '. This will give me a prompt that looks like this – [email protected] %.

In order to make sure this prompt is available on opening new terminal, its needs to be added to profile.

touch ~/.zshrc – create – zshrc file

open ~/.zshrc – open zshrc file and add PROMPT='%[email protected]%1~ %# ' to the file.

Ref: