You can get split charging relays I fit them when wiring Tow bars, you just need one wire direct from the main battery and the relay sends power when the car is running and shuts off when not running clever it does this by measuring the battery voltage.