|
70 | 70 | .rr rF
|
71 | 71 | .\" ========================================================================
|
72 | 72 | .\"
|
73 |
| -.IX Title "IO::FILE=IO(0X1DC0FE0) 1" |
74 |
| -.TH IO::FILE=IO(0X1DC0FE0) 1 "2014-08-28" "perl v5.18.1" "User Contributed Perl Documentation" |
| 73 | +.IX Title "IO::FILE=IO(0X18FA0F0) 1" |
| 74 | +.TH IO::FILE=IO(0X18FA0F0) 1 "2014-09-04" "perl v5.18.1" "User Contributed Perl Documentation" |
75 | 75 | .\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
76 | 76 | .\" way too many mistakes in technical documents.
|
77 | 77 | .if n .ad l
|
@@ -139,11 +139,11 @@ completion.
|
139 | 139 | .PP
|
140 | 140 | The second method is to do these things by hand. This might afford you more
|
141 | 141 | control of your shell environment. Simply add the \f(CW\*(C`lib\*(C'\fR and \f(CW\*(C`man\*(C'\fR
|
142 |
| -directories to your \f(CW\*(C`PATH and \*(C'\fRMANPATH`: |
| 142 | +directories to your \f(CW\*(C`PATH\*(C'\fR and \f(CW\*(C`MANPATH\*(C'\fR: |
143 | 143 | .PP
|
144 | 144 | .Vb 2
|
145 |
| -\& export PATH=/path/to/git\-hub/lib:"$PATH" |
146 |
| -\& export MANPATH=/path/to/git\-hub/man:"$MANPATH" |
| 145 | +\& export PATH="/path/to/git\-hub/lib:$PATH" |
| 146 | +\& export MANPATH="/path/to/git\-hub/man:$MANPATH" |
147 | 147 | .Ve
|
148 | 148 | .PP
|
149 | 149 | See below for info on how to turn on Command Completion.
|
@@ -174,23 +174,54 @@ If you used \f(CW\*(C`make install\*(C'\fR method, then:
|
174 | 174 | .Ve
|
175 | 175 | .SH "Command Completion"
|
176 | 176 | .IX Header "Command Completion"
|
177 |
| -The \f(CW\*(C`git hub\*(C'\fR command supports \f(CW\*(C`<TAB>\*(C'\fR\-based command completion. You |
178 |
| -need to first turn on Git command completion with something like this: |
| 177 | +The \f(CW\*(C`git hub\*(C'\fR command supports \f(CW\*(C`<TAB>\*(C'\fR\-based command completion. If you |
| 178 | +donât use the \f(CW\*(C`init\*(C'\fR script (see Installation, above), youâll need to enable |
| 179 | +this manually to use it. |
| 180 | +.SS "In Bash" |
| 181 | +.IX Subsection "In Bash" |
| 182 | +If your Bash setup does not already provide command completion for Git, youâll |
| 183 | +need to enable that first: |
179 | 184 | .PP
|
180 | 185 | .Vb 1
|
181 |
| -\& source /etc/bash_completion.d/git |
| 186 | +\& source <Git completion script> |
182 | 187 | .Ve
|
183 | 188 | .PP
|
184 |
| -Note: if you don't have this file or can't find it, do this: |
| 189 | +On your system, the Git completion script might be found at any of the |
| 190 | +following locations (or somewhere else that we donât know about): |
| 191 | +.IP "\(bu" 4 |
| 192 | +\&\f(CW\*(C`/etc/bash_completion.d/git\*(C'\fR |
| 193 | +.IP "\(bu" 4 |
| 194 | +\&\f(CW\*(C`/usr/share/bash\-completion/git\*(C'\fR |
| 195 | +.IP "\(bu" 4 |
| 196 | +\&\f(CW\*(C`/usr/share/bash\-completion/completions/git\*(C'\fR |
| 197 | +.IP "\(bu" 4 |
| 198 | +\&\f(CW\*(C`/opt/local/share/bash\-completion/completions/git\*(C'\fR |
| 199 | +.IP "\(bu" 4 |
| 200 | +\&\f(CW\*(C`/usr/local/etc/bash_completion.d/git\*(C'\fR |
| 201 | +.IP "\(bu" 4 |
| 202 | +\&\f(CW\*(C`~/.homebrew/etc/bash_completion.d/git\*(C'\fR |
| 203 | +.PP |
| 204 | +In case you canât find any of these, this repository contains a copy of the |
| 205 | +Git completion script: |
185 | 206 | .PP
|
186 | 207 | .Vb 1
|
187 |
| -\& source /path/to/git\-hub/lib/git\-hub.d/git\-completion |
| 208 | +\& source /path/to/git\-hub/share/git\-completion.bash |
188 | 209 | .Ve
|
189 | 210 | .PP
|
190 |
| -Then turn on \f(CW\*(C`git\-hub\*(C'\fR completion with a command like this: |
| 211 | +Once Git completion is enabled (whether you needed to do that manually or |
| 212 | +not), you can turn on \f(CW\*(C`git\-hub\*(C'\fR completion with a command like this: |
| 213 | +.PP |
| 214 | +.Vb 1 |
| 215 | +\& source /path/to/git\-hub/share/completion.bash |
| 216 | +.Ve |
| 217 | +.SS "In zsh" |
| 218 | +.IX Subsection "In zsh" |
| 219 | +In the Z shell (zsh), you can manually enable \f(CW\*(C`git\-hub\*(C'\fR completion by |
| 220 | +adding the following line to your \f(CW\*(C`~/.zshrc\*(C'\fR, \fBbefore\fR the \f(CW\*(C`compinit\*(C'\fR |
| 221 | +function is called: |
191 | 222 | .PP
|
192 | 223 | .Vb 1
|
193 |
| -\& source /path/to/git\-hub/lib/git\-hub.d/completion |
| 224 | +\& fpath=(\*(Aq/path/to/git\-hub/share/zsh\-completion\*(Aq $fpath) |
194 | 225 | .Ve
|
195 | 226 | .SH "Plugins"
|
196 | 227 | .IX Header "Plugins"
|
|
0 commit comments