Skip to content

Commit

Permalink
added completions to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Aug 20, 2020
1 parent df9161f commit 7a92c29
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Enter default GitLab token:
```
# Completions

`lab` provides completions for bash and zsh.
`lab` provides completions for bash, elvish, fish, powershell and zsh.

### Bash

Expand All @@ -112,6 +112,18 @@ Enter default GitLab token:
source "/path/to/lab-completions.bash"
```

### Elvish

`lab completion elvish` will generate an elvish completion script. Save this script to `~/.elvish/lib/lab.elv` and add `use lab` to your startup script at `~/.elvish/rc.elv`

### Fish

`lab completion fish` will generate a fish completion script. Save this script to `~/.config/fish/completions/lab.fish`.

### Powershell

`lab completion powershell` will generate a powershell completion script. Save this script to `~/.config/powershell/lab-completions.ps1` and add `Get-Content ~/.config/powershell/lab-completions.ps1 | Out-String | Invoke-Expression` to your profile script at `~/.config/powershell/Microsoft.PowerShell_profile.ps1` (you might want to enable menu completion as well with `Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete`).

### Zsh

`lab completion zsh` will generate a zsh completion script. zsh completions are denoted with the syntax `_command-name`, so save the output of `lab completion` to a file name `_lab`. Place the file in your `$FPATH`, or create an new directory and add it to your `$FPATH`.
Expand Down

0 comments on commit 7a92c29

Please sign in to comment.