Guest User

Untitled

a guest
Jun 25th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 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. TITLEPREFIX='git bash'
  7. fi
  8.  
  9. if test -f ~/.config/git/git-prompt.sh
  10. then
  11. . ~/.config/git/git-prompt.sh
  12. else
  13. PS1='\[\033]0;$TITLEPREFIX:$PWD\007\]' # set window title
  14. # PS1="$PS1"'\n' # new line
  15. PS1="$PS1"'\[\033[32m\]' # change to green
  16. # PS1="$PS1"'\u@\h ' # user@host<space>
  17. PS1="$PS1"'\u@EDI ' # user@EDI<space>
  18. PS1="$PS1"'\[\033[35m\]' # change to purple
  19. # PS1="$PS1"'$MSYSTEM ' # show MSYSTEM
  20. # PS1="$PS1"'\[\033[33m\]' # change to brownish yellow
  21. PS1="$PS1"'\[\033[34m\]' # change to blue
  22. PS1="$PS1"'\w' # current working directory
  23. if test -z "$WINELOADERNOEXEC"
  24. then
  25. GIT_EXEC_PATH="$(git --exec-path 2>/dev/null)"
  26. COMPLETION_PATH="${GIT_EXEC_PATH%/libexec/git-core}"
  27. COMPLETION_PATH="${COMPLETION_PATH%/lib/git-core}"
  28. COMPLETION_PATH="$COMPLETION_PATH/share/git/completion"
  29. if test -f "$COMPLETION_PATH/git-prompt.sh"
  30. then
  31. . "$COMPLETION_PATH/git-completion.bash"
  32. . "$COMPLETION_PATH/git-prompt.sh"
  33. PS1="$PS1"'\[\033[36m\]' # change color to cyan
  34. PS1="$PS1"'`__git_ps1`' # bash function
  35. fi
  36. fi
  37. PS1="$PS1"'\[\033[0m\]' # change color
  38. # PS1="$PS1"'\n' # new line
  39. PS1="$PS1"'$ ' # prompt: always $
  40. fi
  41.  
  42. MSYS2_PS1="$PS1" # for detection by MSYS2 SDK's bash.basrc
Add Comment
Please, Sign In to add comment