bash completion with colour hints

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Shawn

I only recently found the __git_ps1 function, but it wasn't directly able to replace my own contraption. I've modified the version I found after installing bash-completion in debian 6.

The patch is attached, it contains an escape character, so it is hard to include in plain text. I've gzipped it for convenience...

This is only a first step, I had a hard time figuring out what exactly the one-letter variables were doing (and still a bit unclear), so I'm sure this can be improved!

Anyway, the functionality of this patch is to show the output in green if the repo is up to date and red or other colours if it isn't.

Cheers

Simon

Attachment: bash_git_completion_colour.patch.gz
Description: application/gzip


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]