GegoXaren

[Bash] Make the bash cooler.

Jan 9th, 2021 (edited)
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.37 KB | None | 0 0
  1. # This requires Breezy (What was called Bazaar some time ago) to be installed.
  2. # This sort works with Git too.
  3.  
  4. function __prompt_bzr () {
  5.     local revno nick;
  6.     revno=$(brz revno 2>/dev/null) || return
  7.     nick=$(brz nick 2>/dev/null) || return
  8.     echo -en "\e[0m[\e[2mbrz://$revno@$nick\e[0m]"
  9. }
  10.  
  11.  
  12. if [ "$PS1" ]; then
  13.     PS1='[\t] \u@\h: $(__prompt_bzr) \w/\e[0m\]''\n''\$ '
  14. fi
Add Comment
Please, Sign In to add comment