Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
d6d038bf
Commit
d6d038bf
authored
Apr 21, 2015
by
Dylan Powers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: Check if GOPATH exists before sourcing command-completion
parent
71e89191
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
docs/command-completion.md
docs/command-completion.md
+6
-2
No files found.
docs/command-completion.md
View file @
d6d038bf
...
...
@@ -13,8 +13,12 @@ Linux
-----
### Bash
For bash, completion can be enabled in a couple of ways. One is to add the line
`source $GOPATH/src/github.com/ipfs/go-ipfs/misc/completion/ipfs-completion.bash`
For bash, completion can be enabled in a couple of ways. One is to add
```
bash
if
[
-n
"
$GOPATH
"
]
;
then
source
$GOPATH
/src/github.com/ipfs/go-ipfs/misc/completion/ipfs-completion.bash
fi
```
into your
`~/.bash_completion`
. It will automatically be loaded the next time
bash is loaded.
To enable ipfs command completion globally on your system you may also
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment