Is there a way to give `bitcoin-cli` a different default conf directory instead of specifying it each time? I have changed the configuration directory for bitcoind.
However when I make a bitcion-cli request:
bitcoin-cli getblockcount

I get an error about RPC credentials using ~/.bitcoin/bitcoin/conf
So for me to actually run the command with the correct config and authnetication cookie I have to specify the configuration directory explicitly every time. Is there a way to make it implicit?
bitcoin-cli -conf=/media/btc/bitcoin/bitcoin.conf getblockcount
581510
In this case I would create an alias?
$ alias BCLI=&quot;bitcoin-cli -conf=/media/btc/bitcoin/bitcoin.conf&quot;
$ BCLI getblockcount

On Windows you may use doskey.