From f63a69ebf25e8de0948feecad9886d7c55415520 Mon Sep 17 00:00:00 2001 From: Tran Hau Date: Sat, 9 May 2020 01:51:01 +0700 Subject: [PATCH] git --- Applications/git.md | 10 ++++++++++ 1 file changed, 10 insertions(+) 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