daily pastebin goal
52%
SHARE
TWEET

Untitled

a guest Feb 19th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if test -f /etc/profile.d/git-sdk.sh
  2. then
  3.     TITLEPREFIX=SDK-${MSYSTEM#MINGW}
  4. else
  5.     TITLEPREFIX=$MSYSTEM
  6. fi
  7.  
  8. if test -f ~/.config/git/git-prompt.sh
  9. then
  10.     . ~/.config/git/git-prompt.sh
  11. else
  12.     PS1=
  13.     PS1="$PS1"'\[\e[1;36m\]\u\[\e[01;37m\]:'
  14.     # PS1="$PS1"' \[\e[1;30m\]\t\[\e[00m\]'
  15.     if test -z "$WINELOADERNOEXEC"
  16.     then
  17.         GIT_EXEC_PATH="$(git --exec-path 2>/dev/null)"
  18.         COMPLETION_PATH="${GIT_EXEC_PATH%/libexec/git-core}"
  19.         COMPLETION_PATH="${COMPLETION_PATH%/lib/git-core}"
  20.         COMPLETION_PATH="$COMPLETION_PATH/share/git/completion"
  21.         if test -f "$COMPLETION_PATH/git-prompt.sh"
  22.         then
  23.             . "$COMPLETION_PATH/git-completion.bash"
  24.             . "$COMPLETION_PATH/git-prompt.sh"
  25.             PS1="$PS1"'`if [ $? = 0 ]; then echo "\[\e[32m\] ✔"; else echo "\[\e[31m\] ✘"; fi`'
  26.             PS1="$PS1"' \[\e[1;34m\]\w\[\e[00m\]'
  27.             PS1="$PS1"'`[[ $(git status 2> /dev/null) =~ Changes\ to\ be\ committed: ]] && echo "\[\e[33m\]" || echo "\[\e[1;31m\]"``[[ ! $(git status 2> /dev/null) =~ nothing\ to\ commit,\ working\ .+\ clean ]] || echo "\[\e[1;32m\]"`'
  28.             PS1="$PS1"'`__git_ps1`'
  29.         fi
  30.     fi
  31.     PS1="$PS1"'\[\e[37m\] ➜  '
  32. fi
  33.  
  34. MSYS2_PS1="$PS1"               # for detection by MSYS2 SDK's bash.basrc
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top