tmux context start + some clfu functions
This commit is contained in:
parent
1dd3cc3c26
commit
dc513b5c70
3 changed files with 39 additions and 1 deletions
13
prompt
13
prompt
|
@ -35,7 +35,18 @@ function precmd {
|
|||
|
||||
###
|
||||
# Get Mercurial info
|
||||
PR_MESSAGE=`hg branch 2>/dev/null`
|
||||
PR_HG_BRANCH=`hg branch 2>/dev/null`
|
||||
if [ "$?" != "255" ]; then
|
||||
#tmuxhglog
|
||||
PR_HG_CHANGECOUNTER=`hg st 2>/dev/null | wc -l`
|
||||
if [ "$PR_HG_CHANGECOUNTER" != "0" ]; then
|
||||
PR_MESSAGE="$PR_HG_BRANCH ($PR_HG_CHANGECOUNTER)"
|
||||
else
|
||||
PR_MESSAGE="$PR_HG_BRANCH"
|
||||
fi
|
||||
else
|
||||
PR_MESSAGE=""
|
||||
fi
|
||||
}
|
||||
setopt extended_glob
|
||||
preexec () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue