Merge pull request #16951 from costastf/master

vendor: update posener complete install
This commit is contained in:
Sander van Harmelen 2017-12-19 13:34:54 +01:00 committed by GitHub
commit 80e3511c9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View File

@ -19,7 +19,7 @@ type installer interface {
func Install(cmd string) error {
is := installers()
if len(is) == 0 {
return errors.New("Did not found any shells to install")
return errors.New("Did not find any shells to install")
}
bin, err := getBinaryPath()
if err != nil {
@ -41,7 +41,7 @@ func Install(cmd string) error {
func Uninstall(cmd string) error {
is := installers()
if len(is) == 0 {
return errors.New("Did not found any shells to uninstall")
return errors.New("Did not find any shells to uninstall")
}
bin, err := getBinaryPath()
if err != nil {
@ -59,7 +59,7 @@ func Uninstall(cmd string) error {
}
func installers() (i []installer) {
for _, rc := range [...]string{".bashrc", ".bash_profile"} {
for _, rc := range [...]string{".bashrc", ".bash_profile", ".bash_login", ".profile"} {
if f := rcFile(rc); f != "" {
i = append(i, bash{f})
break

View File

@ -35,5 +35,5 @@ func (z zsh) Uninstall(cmd, bin string) error {
}
func (zsh) cmd(cmd, bin string) string {
return fmt.Sprintf("complete -C %s %s", bin, cmd)
return fmt.Sprintf("complete -o nospace -C %s %s", bin, cmd)
}

6
vendor/vendor.json vendored
View File

@ -2053,10 +2053,10 @@
"revisionTime": "2017-07-30T19:30:24Z"
},
{
"checksumSHA1": "kuS9vs+TMQzTGzXteL6EZ5HuKrU=",
"checksumSHA1": "7d+I/1S5kAKCL2mlyu1ntha8Bis=",
"path": "github.com/posener/complete/cmd/install",
"revision": "f4461a52b6329c11190f11fe3384ec8aa964e21c",
"revisionTime": "2017-07-30T19:30:24Z"
"revision": "6bee943216c8cea4cc983c8596346d8945279a1f",
"revisionTime": "2017-12-19T11:11:28Z"
},
{
"checksumSHA1": "DMo94FwJAm9ZCYCiYdJU2+bh4no=",