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

**URL:** <https://hub.mender.io/t/remote-terminal-mender-connect-conf-where-to-put-bashrc-or-configure-the-prompt/3264>\
**Category:** General Discussions\
**Created:** [February 23, 2021, 3:03pm UTC](https://hub.mender.io/t/remote-terminal-mender-connect-conf-where-to-put-bashrc-or-configure-the-prompt/3264 "2021-02-23T15:03:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DSiegmund](https://avatars.discourse-cdn.com/v4/letter/d/e19b73/32.png) [@DSiegmund](https://hub.mender.io/u/DSiegmund)\
**Post date:** [February 23, 2021, 3:03pm UTC](https://hub.mender.io/t/remote-terminal-mender-connect-conf-where-to-put-bashrc-or-configure-the-prompt/3264/1 "2021-02-23T15:03:24Z")

</div>

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](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 !

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [February 23, 2021, 3:40pm UTC](https://hub.mender.io/t/remote-terminal-mender-connect-conf-where-to-put-bashrc-or-configure-the-prompt/3264/2 "2021-02-23T15:40:02Z")

</div>

@lluiscampos can you help?

---

<div class="post-metadata">

**Author:** ![tranchitella](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/tranchitella/32/606_2.png) [@tranchitella](https://hub.mender.io/u/tranchitella)\
**Post date:** [February 23, 2021, 3:42pm UTC](https://hub.mender.io/t/remote-terminal-mender-connect-conf-where-to-put-bashrc-or-configure-the-prompt/3264/3 "2021-02-23T15:42:33Z")

</div>

@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.

---

<div class="post-metadata">

**Author:** ![DSiegmund](https://avatars.discourse-cdn.com/v4/letter/d/e19b73/32.png) [@DSiegmund](https://hub.mender.io/u/DSiegmund)\
**Post date:** [February 23, 2021, 4:16pm UTC](https://hub.mender.io/t/remote-terminal-mender-connect-conf-where-to-put-bashrc-or-configure-the-prompt/3264/4 "2021-02-23T16:16:04Z")

</div>

I tried something like this

```json
{
    "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

```json
{
    "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 !
