Skip to content

Instantly share code, notes, and snippets.

@PradyumnaKrishna
Last active September 26, 2020 14:11
Show Gist options
  • Save PradyumnaKrishna/44a42447a54408d755101cb606a8e847 to your computer and use it in GitHub Desktop.
Save PradyumnaKrishna/44a42447a54408d755101cb606a8e847 to your computer and use it in GitHub Desktop.
Custom ZSH Prompt for Terminal

Custom ZSH Prompt for Terminal in mac or linux

Setup custom prompt

  • Open .zshrc using you favoriate editor present at your home directory

  • Add these two lines

    PROMPT="%B%F{red}%n%f %F{cyan}%1~%f %(!.#.>) %b";
    export PROMPT
    
  • This will look like

    (username) ~ >
    

    OR

    (username) (directory) >
    
  • As Shown in Image

Prompt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment