Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- git_branch() {
- git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/[\1]/'
- }
- # NOTE: The dollar sign ($) has to be escaped so that the above function is executed every time the prompt is shown
- # like this: \$(git_branch)
- 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