Skip to content

Instantly share code, notes, and snippets.

@tmastny
Last active August 21, 2018 17:07
Show Gist options
  • Save tmastny/cc7fbcb79979a3829f0ff09fcd54ebff to your computer and use it in GitHub Desktop.
Save tmastny/cc7fbcb79979a3829f0ff09fcd54ebff to your computer and use it in GitHub Desktop.
# curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
fi
# https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh
source ~/.git-prompt.sh
# save lots of history
export HISTFILESIZE=10000
export HISTSIZE=10000
export HISTCONTROL=erasedups
shopt -s histappend
# command line and color
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
export PS1='`__git_ps1 "\[\033[32m\][%s]\[\033[0m\] "`\[\033[33;1m\]\W\[\033[m\]\$ '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment