mirror of
https://github.com/TECHNOFAB11/tmux2k.git
synced 2025-12-11 23:50:08 +01:00
Shorten long branch names
This commit is contained in:
parent
deba37eed1
commit
5583124d0b
1 changed files with 5 additions and 5 deletions
|
|
@ -37,10 +37,10 @@ for i in $(git -C $path status -s)
|
||||||
done
|
done
|
||||||
|
|
||||||
output=""
|
output=""
|
||||||
[ $added -gt 0 ] && output+="${added} "
|
[ $added -gt 0 ] && output+="${added} "
|
||||||
[ $modified -gt 0 ] && output+=" ${modified} "
|
[ $modified -gt 0 ] && output+=" ${modified} "
|
||||||
[ $updated -gt 0 ] && output+=" ${updated} "
|
[ $updated -gt 0 ] && output+=" ${updated} "
|
||||||
[ $deleted -gt 0 ] && output+=" ${deleted} "
|
[ $deleted -gt 0 ] && output+=" ${deleted} "
|
||||||
|
|
||||||
echo $output
|
echo $output
|
||||||
}
|
}
|
||||||
|
|
@ -102,7 +102,7 @@ checkForGitDir()
|
||||||
getBranch()
|
getBranch()
|
||||||
{
|
{
|
||||||
if [ $(checkForGitDir) == "true" ]; then
|
if [ $(checkForGitDir) == "true" ]; then
|
||||||
echo $(git -C $path rev-parse --abbrev-ref HEAD)
|
printf "%.20s " $(git -C $path rev-parse --abbrev-ref HEAD)
|
||||||
else
|
else
|
||||||
echo $no_repo_message
|
echo $no_repo_message
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue