From 63e7a3b3f3939b1cb26671e1ec9f49731d295282 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Date: Sat, 4 Jan 2014 23:36:47 +0100 Subject: bash: load Go's bash completion if it's installed in the system. --- bashrc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bashrc') diff --git a/bashrc b/bashrc index d88657f..7b045a8 100644 --- a/bashrc +++ b/bashrc @@ -59,6 +59,11 @@ export GOROOT=$HOME/Projects/go export GOPATH=$HOME/Projects/golang export PATH=$HOME/Projects/golang/bin:$HOME/Projects/go/bin:$PATH +# If Go exists in the system, bring its bash completion in. +if [ -d "$GOROOT" ]; then + source "$GOROOT/misc/bash/go" +fi + # Completion for the review command. See: https://github.com/mssola/review source $HOME/.review_completion.sh -- cgit v1.2.3