1glab(1) glab(1)
2
3
4
6 glab-completion - Generate shell completion scripts
7
8
9
11 glab completion [flags]
12
13
14
16 The output of this command will be computer code and is meant to be
17 saved to a file or immediately evaluated by an interactive shell. To
18 load completions:
19
20
21 Bash
22 To load completions in your current shell session:
23
24 source <(glab completion -s bash)
25
26
27
28 To load completions for every new session, execute once:
29
30
31 Linux
32 glab completion -s bash > /etc/bash_completion.d/glab
33
34
35
36 macOS
37 glab completion -s bash > /usr/local/etc/bash_completion.d/glab
38
39
40
41 Zsh
42 If shell completion is not already enabled in your environment you will
43 need to enable it. You can execute the following once:
44
45 echo "autoload -U compinit; compinit" >> ~/.zshrc
46
47
48
49 To load completions in your current shell session:
50
51 source <(glab completion -s zsh); compdef _glab glab
52
53
54
55 To load completions for every new session, execute once:
56
57
58 Linux
59 glab completion -s zsh > "${fpath[1]}/_glab"
60
61
62
63 macOS
64 For older versions of macOS, this may be required:
65
66 glab completion -s zsh > /usr/local/share/zsh/site-functions/_glab
67
68
69
70 The Homebrew version of glab should automatically install completions.
71
72
73 fish
74 To load completions in your current shell session:
75
76 glab completion -s fish | source
77
78
79
80 To load completions for every new session, execute once:
81
82 glab completion -s fish > ~/.config/fish/completions/glab.fish
83
84
85
86 PowerShell
87 To load completions in your current shell session:
88
89 glab completion -s powershell | Out-String | Invoke-Expression
90
91
92
93 To load completions for every new session, add the output of the above
94 command to your powershell profile.
95
96
97 When installing glab through a package manager, however, it's possible
98 that no additional shell configuration is necessary to gain completion
99 support. For Homebrew, see ⟨https://docs.brew.sh/Shell-Completion⟩
100
101
102
104 --no-desc[=false] Do not include shell completion description
105
106
107 -s, --shell="bash" Shell type: {bash|zsh|fish|powershell}
108
109
110
112 --help[=false] Show help for command
113
114
115
117 glab(1)
118
119
120
121Auto generated by spf13/cobra Nov 2023 glab(1)