Search code examples
gitterminalzshiterm2oh-my-zsh

Oh my Zsh - What is the number in brackets that appears now in my command line?


enter image description here

I have just recently installed oh my Zsh and when I did a number in brackets appeared next to my command line prompt (please see my picture).

Could someone please tell me what this number is and how to remove or configure it to something else?


Solution

  • Your prompt looks like:

    jonathonday:Desktop/ (5237f76 X) $
    

    I would guess that this shows:

    1. User
    2. Current location (Desktop/)
    3. The current git HEAD (5237f76)
    4. The git-status of your working directory (dirty: X)

    If you're not in a git repository, and you're seeing the (5237f76 X), please add more information to your question (what theme are you using / what have you edited in the oh-my-zsh installation).