diff --git a/gocomplete/complete.go b/gocomplete/complete.go index 60a9835..159d79f 100644 --- a/gocomplete/complete.go +++ b/gocomplete/complete.go @@ -8,8 +8,8 @@ var ( predictEllipsis = complete.PredictSet("./...") goFilesOrPackages = complete.PredictFiles("**.go"). - Or(complete.PredictDirs("./")). - Or(predictEllipsis) + Or(complete.PredictDirs("./")). + Or(predictEllipsis) ) func main() { diff --git a/install/home.go b/install/home.go index 1850a05..825bdb7 100644 --- a/install/home.go +++ b/install/home.go @@ -5,10 +5,10 @@ import ( "errors" "fmt" "io" + "io/ioutil" "os" "os/user" "path/filepath" - "io/ioutil" ) type home struct{} @@ -150,4 +150,4 @@ func copyFile(src string, dst string) error { defer out.Close() _, err = io.Copy(out, in) return err -} \ No newline at end of file +} diff --git a/install/root.go b/install/root.go index b128a0d..66e23b3 100644 --- a/install/root.go +++ b/install/root.go @@ -25,6 +25,5 @@ func (root) Uninstall(cmd string, bin string) error { } func getBashCompletionDLink(cmd string) string { - return "/etc/bash_completion.d/"+cmd + return "/etc/bash_completion.d/" + cmd } -