From 857564285d96c8694b299884fff27b28c6bad461 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Fri, 17 Apr 2015 17:58:03 +0900 Subject: [PATCH] shrc: Export GIT_PS1_* variables --- shrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shrc b/shrc index da8e1ae..e9189b9 100755 --- a/shrc +++ b/shrc @@ -1027,8 +1027,8 @@ for f in /usr/share/git/git-prompt.sh \ do test -r "$f" && ($inbash || $inzsh) && . "$f" && break done -GIT_PS1_SHOWDIRTYSTATE=t -GIT_PS1_SHOWUPSTREAM=t +export GIT_PS1_SHOWDIRTYSTATE=t +export GIT_PS1_SHOWUPSTREAM=t __my_ps1_git(){ null type __git_ps1 || return $last null git rev-parse --git-dir >/dev/null 2>&1 || return $last