Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debian and Ubuntue images do not load .bashrc on enter? #1630

Open
sladiri opened this issue Dec 10, 2024 · 1 comment
Open

Debian and Ubuntue images do not load .bashrc on enter? #1630

sladiri opened this issue Dec 10, 2024 · 1 comment
Labels
question Further information is requested

Comments

@sladiri
Copy link

sladiri commented Dec 10, 2024

Hi, I usually use the default image but debian:latest does not seem to use .bashrc on enter. I saw a similar recent question: #1411

Edit: ubuntu:latest also has problems. A new container with default image does not have these problems.

What problems I observe:

Debian does not add to PATH, I checked with echo $PATH. It also does not find installed nvm.

Ubuntu does have correct PATH, but nvm is not found.

OS info:

host

NAME="Aeon"
ID="aeon"
ID_LIKE="suse opensuse opensuse-tumbleweed opensuse-microos opensuse-aeon microos"
VERSION_ID="20241206"

distrobox

NAME="Debian GNU/Linux"
VERSION_ID="12"
ID=debian
@sladiri sladiri added the question Further information is requested label Dec 10, 2024
@sladiri sladiri changed the title Debian image does not load .bashrc on enter? Debian and Ubuntue images do not load .bashrc on enter? Dec 10, 2024
@kushagra-xo
Copy link

kushagra-xo commented Dec 26, 2024

if [ -f ~/.bashrc ]; then
    . ~/.bashrc
fi

you can add this to your .bash_profile
or just mv your .bashrc to .bash_profile

however this is only a workaround, a better fix would be appreiciated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants