Guest User

Untitled

a guest
Apr 21st, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. git_branch() {
  2. git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/[\1]/'
  3. }
  4. # NOTE: The dollar sign ($) has to be escaped so that the above function is executed every time the prompt is shown
  5. # like this: \$(git_branch)
  6. export PS1="\[\e]0;\w\a\]\n\[\e[36m\]CygWin:\[\e[33m\]\w\[\e[0m\] \[\e[32m\]\[\e[1m\]\$(git_branch)\[\e[0m\]\n$ "
Add Comment
Please, Sign In to add comment