Skip to content

Commit e0b4554

Browse files
committed
Add bash-completion notes
1 parent ea42697 commit e0b4554

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

+16
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,22 @@ $ make user-install # Install to ~/.local/bin
1818
$ make install # Install to /usr/local/bin/
1919
```
2020

21+
### Bash completion
22+
23+
If you installed git-fpaste with `make user-install` you need to add the following script to your `~/.bashrc` to get completion working.
24+
25+
```bash
26+
function _load_completions {
27+
for comp in "${1}"; do
28+
if [ -f "${comp}" ] ; then
29+
. $comp
30+
fi
31+
done
32+
}
33+
_load_completions `ls -w1 ${HOME}/.local/share/bash-completion/completions/*`
34+
```
35+
36+
2137
## Usage
2238

2339
Usage: git fpaste <command> [<args>]

0 commit comments

Comments
 (0)