diff options
| author | Miquel Sabaté <mikisabate@gmail.com> | 2014-01-04 23:36:47 +0100 |
|---|---|---|
| committer | Miquel Sabaté <mikisabate@gmail.com> | 2014-01-04 23:36:47 +0100 |
| commit | 63e7a3b3f3939b1cb26671e1ec9f49731d295282 (patch) | |
| tree | 4eba96b334080d8d9a2f81c1fda3eb882d9ad8b4 /bashrc | |
| parent | 0bdc28fc042d799e7ac0c05cf0819753187030ae (diff) | |
| download | dotfiles-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-- | bashrc | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |
