File tree Expand file tree Collapse file tree 3 files changed +8
-11
lines changed Expand file tree Collapse file tree 3 files changed +8
-11
lines changed Original file line number Diff line number Diff line change 1
- #! /bin/bash
2
-
3
- : ${PROG:= $(basename ${BASH_SOURCE} )}
4
-
5
- _cli_bash_autocomplete () {
1
+ _geth_bash_autocomplete() {
6
2
if [[ "${COMP_WORDS[0]}" != "source" ]]; then
7
3
local cur opts base
8
4
COMPREPLY=()
@@ -17,5 +13,4 @@ _cli_bash_autocomplete() {
17
13
fi
18
14
}
19
15
20
- complete -o bashdefault -o default -o nospace -F _cli_bash_autocomplete $PROG
21
- unset PROG
16
+ complete -o bashdefault -o default -o nospace -F _geth_bash_autocomplete geth
Original file line number Diff line number Diff line change 1
- #compdef $PROG
2
-
3
- _cli_zsh_autocomplete() {
1
+ _geth_zsh_autocomplete() {
4
2
local -a opts
5
3
local cur
6
4
cur=${words[-1]}
@@ -17,4 +15,4 @@ _cli_zsh_autocomplete() {
17
15
fi
18
16
}
19
17
20
- compdef _cli_zsh_autocomplete $PROG
18
+ compdef _geth_zsh_autocomplete geth
Original file line number Diff line number Diff line change 1
1
build/bin/{{.BinaryName}} usr/bin
2
+ {{- if eq .BinaryName "geth" }}
3
+ build/deb/ethereum/completions/bash_autocomplete etc/bash_completion.d/geth
4
+ build/deb/ethereum/completions/zsh_autocomplete usr/share/zsh/vendor-completions/_geth
5
+ {{end -}}
You can’t perform that action at this time.
0 commit comments