How to start the Bitcoin Testnet node on macOS

This is how to start the Bitcoin Testnet node on macOS.

It creates an function btctestnet for convenience.

This configuration loads the txindex so I can lookup transaction information too.

btctestnet ()
{
    open /Applications/Bitcoin-Qt.app --args -txindex=1 -testnet "$@"
}