summaryrefslogtreecommitdiff
path: root/readme.md
blob: 4c86bf7609eb9058b82aa706b1c9c279fd1cf8c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# complete

[![Build Status](https://travis-ci.org/posener/complete.svg?branch=master)](https://travis-ci.org/posener/complete)
[![codecov](https://codecov.io/gh/posener/complete/branch/master/graph/badge.svg)](https://codecov.io/gh/posener/complete)

WIP

a tool for bash writing bash completion in go.

## example: `go` command bash completion

Install in you home directory:

```
go build -o ~/.bash_completion/go ./gocomplete
echo "complete -C ~/.bash_completion/go go" >> ~/.bashrc
```

Or, install in the root directory:

```
sudo go build -o /etc/bash_completion.d/go ./gocomplete
```