Skip to content
Browse files

Add zsh and bash completion for Go tool

  • Loading branch information...
1 parent 53560ba commit ebbebb3cb0a731594f07aaff35ce0d1d8dc62360 @ascarter committed
Showing with 11 additions and 0 deletions.
  1. +6 −0 src/bash_completion
  2. +5 −0 src/zshrc
View
6 src/bash_completion
@@ -1,5 +1,11 @@
# -*- mode: unix-shell-script; -*-
+# go
+if [[ -d $GOROOT && -e $GOROOT/misc/bash/go ]]; then
+ . $GOROOT/misc/bash/go
+fi
+
+
# Source any user bash completion scripts
if [ -d ~/.bash_completion.d ]; then
for f in ~/.bash_completion.d/*
View
5 src/zshrc
@@ -16,6 +16,11 @@ autoload -U ~/.zsh/functions/[^_]*(:t)
autoload -Uz vcs_info
autoload add-zsh-hook
+# go
+if [[ -d $GOROOT && -e $GOROOT/misc/zsh/go ]]; then
+ . $GOROOT/misc/zsh/go
+fi
+
# npm
if [ -n "`which npm`" ]; then
. <(npm completion)

0 comments on commit ebbebb3

Please sign in to comment.
Something went wrong with that request. Please try again.