aboutsummaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
authorMiquel Sabaté <mikisabate@gmail.com>2014-01-04 23:36:47 +0100
committerMiquel Sabaté <mikisabate@gmail.com>2014-01-04 23:36:47 +0100
commit63e7a3b3f3939b1cb26671e1ec9f49731d295282 (patch)
tree4eba96b334080d8d9a2f81c1fda3eb882d9ad8b4 /bashrc
parent0bdc28fc042d799e7ac0c05cf0819753187030ae (diff)
downloaddotfiles-63e7a3b3f3939b1cb26671e1ec9f49731d295282.tar.gz
dotfiles-63e7a3b3f3939b1cb26671e1ec9f49731d295282.zip
bash: load Go's bash completion if it's installed in the system.
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc5
1 files changed, 5 insertions, 0 deletions
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