Skip to content

Commit b27f606

Browse files
committed
Going on CST for this one.
1 parent 6927753 commit b27f606

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
layout: post
3+
title: bash auto completion
4+
category: advanced
5+
---
6+
7+
This tip comes from the ever resourceful "Brian Cardarella":http://cardarella.blogspot.com/, who has a gist on "how to install and set up auto completion":http://gist.github.com/58383 with Git. It's based off of "Shawn O. Pierce's":http://spearce.org bash completion script. Just what will it do for you?
8+
9+
<blockquote>
10+
The contained completion routines provide support for completing:
11+
* local and remote branch names
12+
* local and remote tag names
13+
* .git/remotes file names
14+
* git 'subcommands'
15+
* tree paths within 'ref:path/to/file' expressions
16+
* common --long-options
17+
</blockquote>
18+
19+
20+
Installation is really easy: just download/wget/curl the files and put them in your home directory, edit your @.bash_profile@ and you're set. "Eric Goodwin":http://blog.ericgoodwin.com/ also has a great writeup of "how to pull the script down and install it":http://blog.ericgoodwin.com/2008/4/10/auto-completion-with-git if you haven't compiled git from source. He also has found a "fantastic article":http://blog.infinitered.com/entries/show/4 on bash's various startup files if this is all new to you.
21+
22+
For OSX users, you can also use MacPorts to install the script. "Pratik Naik":http://m.onkey.org/2008/4/12/if-you-see-this has a really easy way of installing it if you used the @+bash_completion@ option. If not, it's probably easier to just deactivate your current version and reinstall it with that option added.
23+
24+
If you know how to accompish this in other shells, comment away or "submit a tip!":/submit.html

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<h2><a href="{{ first_post.url }}">
88
newest tip: {{ first_post.title }}
99
</a></h2>
10-
{{ first_post.content | truncate: 360 }}
10+
{{ first_post.content | truncate: 358 }}
1111
<a id="more" href="{{ first_post.url }}">Read More &raquo;</a>
1212
</div>
1313
<div class="grid_2 omega">

0 commit comments

Comments
 (0)