Advertisement
Guest User

Untitled

a guest
Aug 25th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. PS1='\[\033]0;$TITLEPREFIX:$PWD\007\]' # set window title
  2.  
  3. PS1="$PS1"'\n' # new line
  4. PS1="$PS1"'\[\033[32m\]' # change to green
  5. PS1="$PS1"'\u ' # user<space>
  6. PS1="$PS1"'\[\033[33m\]' # change to brownish yellow
  7. PS1="$PS1"'\w' # current working directory
  8.  
  9. if test -z "$WINELOADERNOEXEC"
  10. then
  11. GIT_EXEC_PATH="$(git --exec-path 2>/dev/null)"
  12. COMPLETION_PATH="${GIT_EXEC_PATH%/libexec/git-core}"
  13. COMPLETION_PATH="${COMPLETION_PATH%/lib/git-core}"
  14. COMPLETION_PATH="$COMPLETION_PATH/share/git/completion"
  15. if test -f "$COMPLETION_PATH/git-prompt.sh"
  16. then
  17. . "$COMPLETION_PATH/git-completion.bash"
  18. . "$COMPLETION_PATH/git-prompt.sh"
  19. PS1="$PS1"'\[\033[36m\]' # change color to cyan
  20. PS1="$PS1"'`__git_ps1`' # bash function
  21. fi
  22. fi
  23.  
  24. PS1="$PS1"'\[\033[0m\]' # change color
  25. PS1="$PS1"'\n' # new line
  26. PS1="$PS1"'> ' # prompt: always >
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement