Patch for concurrent iterator & others (onto v1.11.6) #386

Closed
roysc wants to merge 1565 commits from v1.11.6-statediff-v5 into master
3 changed files with 8 additions and 11 deletions
Showing only changes of commit ea0bf08547 - Show all commits

9
build/deb/ethereum/completions/bash_autocomplete Normal file → Executable file
View File

@ -1,8 +1,4 @@
#! /bin/bash
: ${PROG:=$(basename ${BASH_SOURCE})}
_cli_bash_autocomplete() {
_geth_bash_autocomplete() {
if [[ "${COMP_WORDS[0]}" != "source" ]]; then
local cur opts base
COMPREPLY=()
@ -17,5 +13,4 @@ _cli_bash_autocomplete() {
fi
}
complete -o bashdefault -o default -o nospace -F _cli_bash_autocomplete $PROG
unset PROG
complete -o bashdefault -o default -o nospace -F _geth_bash_autocomplete geth

View File

@ -1,6 +1,4 @@
#compdef $PROG
_cli_zsh_autocomplete() {
_geth_zsh_autocomplete() {
local -a opts
local cur
cur=${words[-1]}
@ -17,4 +15,4 @@ _cli_zsh_autocomplete() {
fi
}
compdef _cli_zsh_autocomplete $PROG
compdef _geth_zsh_autocomplete geth

View File

@ -1 +1,5 @@
build/bin/{{.BinaryName}} usr/bin
{{- if eq .BinaryName "geth" }}
build/deb/ethereum/completions/bash_autocomplete etc/bash_completion.d/geth
build/deb/ethereum/completions/zsh_autocomplete usr/share/zsh/vendor-completions/_geth
{{end -}}