[haiku-commits] haiku: hrev44570 - 3rdparty/mmu_man/scripts

  • From: revol@xxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 22 Aug 2012 01:17:44 +0200 (CEST)

hrev44570 adds 1 changeset to branch 'master'
old head: b9398be907bef8133955acf08642bca8607b10c4
new head: 70449c90d95aeea01b25f686d51da4217fe41317

----------------------------------------------------------------------------

70449c9: dev-perso: Add current branch name in window title for git
  
  * when the project uses git, include the current branch name
  in the terminal window title

                                          [ François Revol <revol@xxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev44570
Commit:      70449c90d95aeea01b25f686d51da4217fe41317
URL:         http://cgit.haiku-os.org/haiku/commit/?id=70449c9
Author:      François Revol <revol@xxxxxxx>
Date:        Tue Aug 21 23:16:15 2012 UTC

----------------------------------------------------------------------------

1 file changed, 3 insertions(+)
3rdparty/mmu_man/scripts/dev-perso |    3 +++

----------------------------------------------------------------------------

diff --git a/3rdparty/mmu_man/scripts/dev-perso 
b/3rdparty/mmu_man/scripts/dev-perso
index 6809930..2fb0583 100755
--- a/3rdparty/mmu_man/scripts/dev-perso
+++ b/3rdparty/mmu_man/scripts/dev-perso
@@ -162,6 +162,9 @@ dev() {
        test -z "$DEVUPCMD" -a \( -f _FOSSIL_ -o -f .fslckout \) && 
DEVUPCMD="fossil update"
        test -z "$DEVUPCMD" -a -n "$P4PORT" && DEVUPCMD="p4 sync"
        test -n "$DEVUPCMD" && history -s "$DEVUPCMD"
+
+       # spice up terminal window title for git, add current branch name
+       test -d .git && PROMPT_COMMAND='echo -en "\033]0;['$DEVPROJ':`git 
branch | sed "/^[^*]/d;s/^\*\s//"`:${PWD##*/}]\a"'
 }
 
 complete -W complete -W "$(dev)" dev


Other related posts:

  • » [haiku-commits] haiku: hrev44570 - 3rdparty/mmu_man/scripts - revol