Skip to content

Commit

Permalink
Merge pull request #22 from IQ2i/update-completion
Browse files Browse the repository at this point in the history
Update completion
  • Loading branch information
loicsapone authored Nov 15, 2021
2 parents ac50071 + 6821bba commit 96a5b0e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
22 changes: 17 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,44 @@

# Installation

## Linux

Run the following installer to download the Aergie binary:

## Linux

```bash
wget https://get.aergie.com/install -O - | bash
```

## macOS

Run the following installer to download the Aergie binary:

```bash
curl -sS https://get.aergie.com/install | bash
```

# Autocomplete

## Bash
Aergie provide a completion tool to facilitate its use.

## bash

First, ensure that you install `bash-completion` using your package manager.

Then, run the following command:

```bash
ae completion bash > /etc/bash_completion.d/ae
```

## zsh

To use zsh completion, you must enable it in your configuration by adding this line:

```
autoload -Uz compinit && compinit
```

Then, run the following command:

```bash
ae completion zsh > "${fpath[1]}/_ae"
```
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/completion/completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func NewCompletionCommand() *cobra.Command {
RunE: func(cmd *cobra.Command, args []string) error {
switch args[0] {
case "bash":
err := cmd.Root().GenBashCompletion(os.Stdout)
err := cmd.Root().GenBashCompletionV2(os.Stdout, false)
if err != nil {
return err
}
Expand Down

0 comments on commit 96a5b0e

Please sign in to comment.