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='%n@%1~ %# '. This will give me a prompt that looks like this – alex.jv@ec2code %.

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='%n@%1~ %# ' to the file.

Ref: