Bash Completion, Along with SVN and Git Tab Completion

Time is pre­cious. I installed these util­i­ties to save some of it:

I install bash-completion via Mac­Ports on my Macs.

sudo port install bash-completion

I then saved this svn-completion script to locally, and did a sudo cp:

sudo cp bash_completion /opt/local/etc/bash_completion.d/svn-completion.sh

Note: “bash_completion” is the file linked on “svn-completion script”. I hope that avoids confusion.

Last but not least, I then installed the git-completion script. I first checked the ver­sion of Git I have via Mac­Ports which hap­pens to be I then saved and untarred the Git tar­ball of the ver­sion I have locally. Then did another sudo cp of the actual git-completion script to the same direc­tory where my svn-completion.sh is located at:

sudo cp git- /opt/local/etc/bash_completion.d/git-completion.sh

After that, I added the fol­low­ing to to my .pro­file (or .bash_profile):

# for bash-completion
if [ -f /opt/local/etc/bash_completion ]; then
    . /opt/local/etc/bash_completion
source /opt/local/etc/bash_completion.d/svn-completion.sh
source /opt/local/etc/bash_completion.d/git-completion.sh

Either restart your Ter­mi­nal, or re-execute your .pro­file, and that would do it.

For more info on Git com­ple­tion, check out this arti­cle by Kamal Fariz (bitfluent).

  1. Got it by using git ver­sion. []

Git Info — Almost Like “svn info”

I have been try­ing to find some­thing like svn info but for Git. Luck­ily, I stum­bled upon Duane Johnson’s script. Here’s git-info.sh:

I made an alias in my .pro­file to make it a bit more accessible:

Clearfix Revisited

The new style rules I’m using:

.clear:after {
    content:" ";
.clear { display: inline-block; }
/* Hides from IE-mac \*/
* html .clear { height:1%; }
.clear { display:block; }
/* End hide from IE-mac */

For more infor­ma­tion on the update, have a read over at Jeff Starr’s Per­ish­able Press arti­cle. If you are com­pletely new to this tech­nique, it orig­i­nated from this arti­cle.

vBulletin and Internet Explorer 8 Compatibility

If you are expe­ri­enc­ing some dis­play issues in IE8 with your vBulletin-based forums (and/or gen­eral sites), you might want to try adding the fol­low­ing meta-tag in your HEAD section:

    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>

You may get more info about this meta-tag and issues that might be con­nected with IE8’s strict­ness at the IEBlog, and/or via this Microsoft Sup­port arti­cle.