Guest User

Untitled

a guest
Nov 23rd, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 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. PS1='\[\033]0;${PWD//[^[:ascii:]]/?}\007\]' # set window title
  9. PS1="$PS1"'\n' # new line
  10. PS1="$PS1"'\[\033[33m\]' # change to brownish yellow
  11. PS1="$PS1"'┌┤' # current working directory
  12. PS1="$PS1"'\[\033[35m\]' # change to brownish yellow
  13. PS1="$PS1"'\w' # current working directory
  14. PS1="$PS1"'\n' # new line
  15. PS1="$PS1"'\[\033[33m\]' # change to brownish yellow
  16. PS1="$PS1"'├┤\[\033[32m\]' # change to green
  17. PS1="$PS1"'$MSYSTEM' # user@host<space>
  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.  
  29. PS1="$PS1"'\[\033[33m\]' # change to brownish yellow
  30. PS1="$PS1"'├─┤' # current working directory
  31.  
  32. PS1="$PS1"'\[\e[1;36m\]' # change color to cyan
  33. #PS1="$PS1"'\[\033[0m\]' # change color
  34. PS1="$PS1"'`__git_ps1 "%s"`' # bash function
  35. fi
  36. fi
  37. #PS1="$PS1"'\[\033[0m\]' # change color
  38. PS1="$PS1"'\[\033[0;33m\]' # change to brownish yellow
  39. PS1="$PS1"'\n' # new line
  40. PS1="$PS1"'└►' # prompt: always $
  41. PS1="$PS1"'\[\033[0m\]' # change color
Add Comment
Please, Sign In to add comment