Skip to content

Instantly share code, notes, and snippets.

@casr
Last active March 1, 2018 15:00
Show Gist options
  • Save casr/002705769112e4770eb90f5a46651f7d to your computer and use it in GitHub Desktop.
Save casr/002705769112e4770eb90f5a46651f7d to your computer and use it in GitHub Desktop.
Tab-completion and branch display for MacOS' default terminal
bind "set completion-ignore-case on"
source /Library/Developer/CommandLineTools/usr/share/git-core/git-completion.bash
source /Library/Developer/CommandLineTools/usr/share/git-core/git-prompt.sh
GIT_PS1_DESCRIBE_STYLE=branch
PS1="\w \$(__git_ps1 '🌴 %s')\n$ "
@casr
Copy link
Author

casr commented Mar 1, 2018

A really basic prompt for getting stuff done with Git.

Preview:

screen shot 2018-03-01 at 14 56 58

Maybe the palm tree is a bit overkill but it is easy to spot and change.

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