[bash] remove git prompt

Under Cygwin, the git prompt was causing the shell to be quite slow,
especially in large repositories or LFS repos with large files.
This commit is contained in:
Fernando Schauenburg 2017-01-27 14:57:32 +01:00
parent 9dc5f0da8b
commit 9a0d2ce8c2

View file

@ -50,7 +50,6 @@ export GIT_PS1_SHOWDIRTYSTATE=1 # show unstaged (*) and staged (+)
export GIT_PS1_SHOWSTASHSTATE=1 # show $ if something is stashed export GIT_PS1_SHOWSTASHSTATE=1 # show $ if something is stashed
export GIT_PS1_SHOWUNTRACKEDFILES=1 # show % if something is untracked export GIT_PS1_SHOWUNTRACKEDFILES=1 # show % if something is untracked
source git-completion.bash source git-completion.bash
source git-prompt.sh
# combined mkdir and cd # combined mkdir and cd
mkcd() { mkdir -p -- "$1" && cd -P -- "$1"; } mkcd() { mkdir -p -- "$1" && cd -P -- "$1"; }
@ -135,7 +134,7 @@ do_solarize_shell() {
# Customize the prompt # Customize the prompt
[ -n "$SSH_CLIENT" ] && __c="0;33" || __c="0;36" [ -n "$SSH_CLIENT" ] && __c="0;33" || __c="0;36"
export PS1="\n[\[\033[${__c}m\]\u@\h \[\033[0;34m\]\w\[\033[0m\]]\n$(__git_ps1 '%s ')\$ " export PS1="\n[\[\033[${__c}m\]\u@\h \[\033[0;34m\]\w\[\033[0m\]]\n\$ "
export PS2=". " export PS2=". "
# Customize colors for `ls` command # Customize colors for `ls` command