Skip to content

Commit debc30d

Browse files
authored
Merge pull request #681 from rsteube/fix-completion-typo
fix copy&paste error in readme
2 parents c4132a9 + a73c3f9 commit debc30d

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ eval (lab completion|slurp)
124124
lab completion | source
125125

126126
# oil
127-
source <(gh _carapace)
127+
source <(lab completion)
128128

129129
# powershell (~/.config/powershell/Microsoft.PowerShell_profile.ps1)
130130
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete

cmd/completion.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,18 @@ import (
1111
// completionCmd represents the completion command
1212
var completionCmd = &cobra.Command{
1313
Use: "completion [shell]",
14-
Short: "Generates the shell autocompletion [bash, elvish, fish, powershell, xonsh, zsh]",
15-
Long: `Generates the shell autocompletion [bash, elvish, fish, powershell, xonsh, zsh]
14+
Short: "Generates the shell autocompletion [bash, elvish, fish, oil, powershell, xonsh, zsh]",
15+
Long: `Generates the shell autocompletion [bash, elvish, fish, oil, powershell, xonsh, zsh]
1616
1717
Scripts can be directly sourced (though using pre-generated versions is recommended to avoid shell startup delay):
1818
bash : source <(lab completion)
1919
elvish : eval(lab completion|slurp)
20-
fish : lab completion fish | source
20+
fish : lab completion | source
21+
oil : source <(lab completion)
2122
powershell : lab completion | Out-String | Invoke-Expression
2223
xonsh : exec($(lab completion))
2324
zsh : source <(lab completion)`,
24-
ValidArgs: []string{"bash", "elvish", "fish", "powershell", "xonsh", "zsh"},
25+
ValidArgs: []string{"bash", "elvish", "fish", "oil", "powershell", "xonsh", "zsh"},
2526
Run: func(cmd *cobra.Command, args []string) {
2627
shell := ""
2728
if len(args) > 0 {

0 commit comments

Comments
 (0)