Skip to content

Own PS1 in .bashr override #11

Closed
Closed

Description

@marusak

I use my own PS1. I have it in my .bashrc file like export PS1=... which overrides the one passed to container. And then it is really confusing if I am in toolbox or on my machine.

Is there some simple way how to easily recognize from toolbox that I am inside (so I can edit my PS1 to recognize this)?

Activity

  1. dac73 commented on Nov 3, 2018

    @dac73

    $HOSTNAME is toolbox in toolbox

  2. marusak commented on Nov 4, 2018

    @marusak
    Author

    Thank you for the hint.
    Prepending $(if test $HOSTNAME = "toolbox"; then echo -n "🔹[\u@\h \W]\\$ "; fi;) to my PS1 solves this issue :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions