Skip to content

Commit 9f5f849

Browse files
author
Jeff VanDellen
committed
Updated copyright, and added instructions for loading bash completion
1 parent 4d8968c commit 9f5f849

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

cmd/completion.go

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright © 2020 NAME HERE <EMAIL ADDRESS>
2+
Copyright © LiquidWeb
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -28,6 +28,17 @@ var completionCmd = &cobra.Command{
2828
Long: `To load completions:
2929
3030
31+
Bash:
32+
33+
$ source <(lw completion bash)
34+
35+
# To load completions for each session, execute once:
36+
Linux:
37+
$ lw completion bash > /etc/bash_completion.d/lw
38+
MacOS:
39+
$ lw completion bash > /usr/local/etc/bash_completion.d/lw
40+
41+
3142
`,
3243
DisableFlagsInUseLine: true,
3344
ValidArgs: []string{"bash", "zsh", "fish", "powershell"},

0 commit comments

Comments
 (0)