This commit is contained in:
Eyal Posener 2017-05-06 19:11:16 +03:00
parent 07b98cb912
commit 60345dc6db
3 changed files with 5 additions and 6 deletions

View File

@ -8,8 +8,8 @@ var (
predictEllipsis = complete.PredictSet("./...") predictEllipsis = complete.PredictSet("./...")
goFilesOrPackages = complete.PredictFiles("**.go"). goFilesOrPackages = complete.PredictFiles("**.go").
Or(complete.PredictDirs("./")). Or(complete.PredictDirs("./")).
Or(predictEllipsis) Or(predictEllipsis)
) )
func main() { func main() {

View File

@ -5,10 +5,10 @@ import (
"errors" "errors"
"fmt" "fmt"
"io" "io"
"io/ioutil"
"os" "os"
"os/user" "os/user"
"path/filepath" "path/filepath"
"io/ioutil"
) )
type home struct{} type home struct{}
@ -150,4 +150,4 @@ func copyFile(src string, dst string) error {
defer out.Close() defer out.Close()
_, err = io.Copy(out, in) _, err = io.Copy(out, in)
return err return err
} }

View File

@ -25,6 +25,5 @@ func (root) Uninstall(cmd string, bin string) error {
} }
func getBashCompletionDLink(cmd string) string { func getBashCompletionDLink(cmd string) string {
return "/etc/bash_completion.d/"+cmd return "/etc/bash_completion.d/" + cmd
} }