Alternatively, if the connection is already created, right-click it and select Edit Connection, then go to Connection settings -> Initialization -> Shell Commands. You can run a command before or ...