Skip to content

Commit 483da47

Browse files
committed
Merge pull request #72 from nalla/git-prompt-no-login
git-extra: add git-prompt check to bash.bashrc
2 parents 0b3037c + 6b6ebbf commit 483da47

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

git-extra/git-extra.install.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ GITCONFIG
2525
! grep -q '^PS1=' /etc/bash.bashrc ||
2626
sed -i 's/^PS1=/#&/' /etc/bash.bashrc
2727

28+
grep -q '^# Fixup git-bash in non login env' /etc/bash.bashrc ||
29+
printf "\n# Fixup git-bash in non login env\nshopt -q login_shell || . /etc/profile.d/git-prompt.sh\n" >> /etc/bash.bashrc
30+
2831
grep -q git-for-windows etc/pacman.conf ||
2932
sed -i -e '/^\[mingw32\]/i[git-for-windows]\nServer = https://dl.bintray.com/$repo/pacman/$arch\nSigLevel = Optional\n' etc/pacman.conf
3033

0 commit comments

Comments
 (0)