Guest User

Untitled

a guest
May 27th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  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='\[\033]0;$PWD\007\]' # set window title
  13. PS1="$PS1"'\n' # new line
  14. PS1="$PS1"'\[\033[36m\]' # change color to blue
  15. PS1="$PS1"'\A ' # add date in HH:MM format
  16. PS1="$PS1"'\[\033[33m\]' # change to yellow
  17. PS1="$PS1"'\W' # current working directory
  18. if test -z "$WINELOADERNOEXEC"
  19. then
  20. GIT_EXEC_PATH="$(git --exec-path 2>/dev/null)"
  21. COMPLETION_PATH="${GIT_EXEC_PATH%/libexec/git-core}"
  22. COMPLETION_PATH="${COMPLETION_PATH%/lib/git-core}"
  23. COMPLETION_PATH="$COMPLETION_PATH/share/git/completion"
  24. if test -f "$COMPLETION_PATH/git-prompt.sh"
  25. then
  26. . "$COMPLETION_PATH/git-completion.bash"
  27. . "$COMPLETION_PATH/git-prompt.sh"
  28. PS1="$PS1"'\[\033[35m\]'
  29. PS1="$PS1"'`__git_ps1`'
  30. fi
  31. fi
  32. PS1="$PS1"'\[\033[32m\]' # change color to blue
  33. PS1="$PS1"' ▷ '
  34. PS1="$PS1"'\[\033[0m\]'
  35. fi
  36.  
  37. MSYS2_PS1="$PS1"
Add Comment
Please, Sign In to add comment