Skip to content

Instantly share code, notes, and snippets.

@juangiordana
Created April 30, 2019 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juangiordana/569ee64790e1aed6d49cb77eb32dc6c1 to your computer and use it in GitHub Desktop.
Save juangiordana/569ee64790e1aed6d49cb77eb32dc6c1 to your computer and use it in GitHub Desktop.
PS1='\n' # new line
PS1="$PS1"'\[\033[32m\]' # change to green
PS1="$PS1"'\u@\h ' # user@host<space>
PS1="$PS1"'\[\033[35m\]' # change to purple
PS1="$PS1"'$MSYSTEM ' # show MSYSTEM
PS1="$PS1"'\[\033[33m\]' # change to brownish yellow
PS1="$PS1"'\w' # current working directory
PS1="$PS1"'\[\033[36m\]' # change color to cyan
PS1="$PS1"'`__git_ps1`' # bash function
PS1="$PS1"'\[\033[0m\]' # change color
PS1="$PS1"'\n' # new line
PS1="$PS1"'$ ' # prompt: always $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment