Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This requires Breezy (What was called Bazaar some time ago) to be installed.
- # This sort works with Git too.
- function __prompt_bzr () {
- local revno nick;
- revno=$(brz revno 2>/dev/null) || return
- nick=$(brz nick 2>/dev/null) || return
- echo -en "\e[0m[\e[2mbrz://$revno@$nick\e[0m]"
- }
- if [ "$PS1" ]; then
- PS1='[\t] \u@\h: $(__prompt_bzr) \w/\e[0m\]''\n''\$ '
- fi
Add Comment
Please, Sign In to add comment