Configuring the Z Shell

Ways to personalize your Z Shell.

Tags:

🌱 Created: 30/03/2022

✏️ Updated: 31/07/2022

Author: Dante Mogrim


Custom Prompt (macOS)

If you already have a .zshrc file in your Home folder already, open it up in your code editor:

$ code . .zshrc

If you don't, create one by heading over to your home folder and run the following command:

$ touch .zshrc

Output your device's name:

.zshrc

PROMPT='%B%F{51}%m:%f%b'

Give your prompt an emoji:

.zshrc

PROMPT='🧙‍♂️ '