diff --git a/Applications/git.md b/Applications/git.md index 12a6a07..7ef33fb 100644 --- a/Applications/git.md +++ b/Applications/git.md @@ -1,5 +1,15 @@ # Git +Add to `~/.bashrc`: + +```bash +[[ -f /usr/share/git/completion/git-completion.bash ]] && \ + source /usr/share/git/completion/git-completion.bash +[[ -f /usr/share/git/completion/git-prompt.sh ]] && \ + source /usr/share/git/completion/git-prompt.sh +PS1='[\u@\h \W$(__git_ps1 " (%s)")]\$ ' +``` + Prefer rebase when pull: ```sh