Skip to content

Instantly share code, notes, and snippets.

@heathermiller
Last active December 11, 2018 06:35
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heathermiller/9158658 to your computer and use it in GitHub Desktop.
Save heathermiller/9158658 to your computer and use it in GitHub Desktop.
A more beautiful Terminal experience.

A nicer Terminal experience.

Just add the following to your bash profile.

export PS1='\[\033[38;5;202;48;5;0m\]⏣ \[\033[38;5;134;48;5;0m\]\w \[\033[38;5;112;48;5;0m\]`git branch 2> /dev/null | grep -e ^* | sed -E  s/^\\\\\*\ \(.+\)$/\(\\\\\1\)\ /`\[\033[00m\]'

(The green bit there is the current branch you're on if you're in a directory that has a git repository within it)

@leandrodeleite
Copy link

Thanks!

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