projects
/
clearscm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added git branch to window title if in a git repository.
[clearscm.git]
/
rc
/
functions
diff --git
a/rc/functions
b/rc/functions
index
fd373a2
..
1f1636d
100644
(file)
--- a/
rc/functions
+++ b/
rc/functions
@@
-38,6
+38,11
@@
function title_bar {
current_dir="$current_dir ($(cat CVS/Root | tr -d $CR))"
fi
current_dir="$current_dir ($(cat CVS/Root | tr -d $CR))"
fi
+ # Add GIT info if available
+ if [ -d .git ]; then
+ current_dir="git: $(git branch | sed -n -e 's/^\* \(.*\)/\1/p') $current_dir"
+ fi
+
if [ "$TERM" = "hpterm" -o \
"$TERM" = "hp" -o \
"$TERM" = "2392A" ]; then
if [ "$TERM" = "hpterm" -o \
"$TERM" = "hp" -o \
"$TERM" = "2392A" ]; then