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

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" ) )
}