Remote Terminal - mender-connect.conf - where to put .bashrc or configure the prompt

I just managed to change my raspberrypi3 Yocto-Image from ‘thud’ to ‘zeus’ and included the 2.5.0 mender-client and mender-connect. ‘dunfell’ does not build at all with nodejs-12 in the image.

So far, the Remote Terminal works, but I only see a default remote prompt, not the prompt from the description https://docs.mender.io/add-ons/remote-terminal which would equal to export PS1=' \e[1;32m\u@\H:\W$ \e[0m]'

Where on my Image or via .bbppend do I have to put the .bashrc-file to configure ?

I tried to add it in the “ShellCommand”-string, but I failed so far…

Thank you in advance !

@lluiscampos can you help?

@DSiegmund aree you sure you are using bash, and not sh? If not, can you please set ShellCommand to be /bin/bash and try again? The .bashrc file is supposed to be in the user’s home directory, and it is read directly by bash.

I tried something like this

{
    "ServerURL": "https://hosted.mender.io",
    "ShellCommand": "/bin/bash --rcfile <(echo \"PS1='\\e[1;31m\\u@\\H:\\W$ \\e[0m'\") -i",
    "User": "root"
}

but it did not work…

using only

{
    "ServerURL": "https://hosted.mender.io",
    "ShellCommand": "/bin/bash",
    "User": "root"
}

works, but I only have the standard prompt 'bash-5.0# ’

But you are right with the .bashrc in my user directory. In my image, there is no -bashrc at all !

So I will add it with a .bbappend in my image. Thanks !