Always bash-complete the default account

This commit is contained in:
Jack Grigg 2016-12-02 17:26:57 +13:00
parent ca483b4064
commit a01daac728
No known key found for this signature in database
GPG Key ID: 6A6914DAFBEA00DA
1 changed files with 3 additions and 1 deletions

View File

@ -20,7 +20,9 @@ _zcash_rpc() {
# Add wallet accounts to COMPREPLY
_zcash_accounts() {
local accounts
accounts=$(_zcash_rpc listaccounts | awk -F '"' '{ print $2 }')
# Accounts are deprecated in Zcash
#accounts=$(_zcash_rpc listaccounts | awk -F '"' '{ print $2 }')
accounts="\\\"\\\""
COMPREPLY=( "${COMPREPLY[@]}" $( compgen -W "$accounts" -- "$cur" ) )
}