This is a seemly trivial question but I can\'t find a simple way to accomplish this.
I have my .gdbinit file defined in the same directory as where gdb.
.gdbinit
I launch xt-gdb that comes with Xtensa tool chain with -iex -ix parameters as follows:
xt-gdb -iex "set auto-load safe-path Path\to\gdbinit\dir" -ix Path\to\gdbinit\dir.gdbinit