From 02949f92f0be3665e11a4513ddface5104fd3915 Mon Sep 17 00:00:00 2001 From: Wesley Moore Date: Mon, 22 Mar 2010 08:05:55 +1100 Subject: [PATCH] QA /technical/2009/03/bash-git-completion-with-mac-ports/ --- .../2009/03/bash-git-completion-with-mac-ports.html | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/content/technical/2009/03/bash-git-completion-with-mac-ports.html b/content/technical/2009/03/bash-git-completion-with-mac-ports.html index 48533d2..1a92c50 100644 --- a/content/technical/2009/03/bash-git-completion-with-mac-ports.html +++ b/content/technical/2009/03/bash-git-completion-with-mac-ports.html @@ -1,5 +1,9 @@ -Git comes with bash completion support which comes in handy for completing branch names and things like that. To get this support when installing git via Mac Ports you must add the bash_completion variant. You'll also want to install the bash_completion port. After that you need to add the following to your ~/.bashrc file:
if [ -f /opt/local/etc/bash_completion ]; then
-    . /opt/local/etc/bash_completion
-fi
-For reference I have the folloowing Git related config in my .bashrc: +Git comes with bash completion support which comes in handy for completing branch names and things like that. To get this support when installing git via Mac Ports you must add the bash\_completion variant. You'll also want to install the bash\_completion port. After that you need to add the following to your `~/.bashrc` file: + + if [ -f /opt/local/etc/bash_completion ]; then + . /opt/local/etc/bash_completion + fi + +For reference I have the following Git related config in my `.bashrc`: + \ No newline at end of file