Skip to content

Instantly share code, notes, and snippets.

@aduzsardi
Created March 14, 2019 08:41
Show Gist options
  • Save aduzsardi/54b812feda5e5de11f7e67f794aaff7e to your computer and use it in GitHub Desktop.
Save aduzsardi/54b812feda5e5de11f7e67f794aaff7e to your computer and use it in GitHub Desktop.
bash prompt
export PS1='\[\e[1;33m\]\u\[\e[1;37m\]@\[\e[1;32m\]\h\[\e[1;37m\]: \[\e[1;31m\]\w\[\e[0;36m\]$(__git_ps1 "\e[37m (\e[36m%s ⎇ \e[37m)\e[0m")\n\[\e[1;36m\]└─\$ ▶ \[\e[0m\]'
# if you don't have __git_ps1 (git-prompt.sh) , you can download it from here https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh , and source it in your bash init files (ie. .bashrc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment