By default `machinectl shell` runs the user's shell with the "login" flag,
exactly as during console or SSH logins. For Bash, that means it will look
for ~/.bash_profile or ~/.profile *instead of* ~/.bashrc.
Usually people have a ~/.bash_profile that sets up "once per session"
things if any, then
Hi,
somehow, when using machinectl shell to access my nspawn containers, my
.bashrc is ignored, although bash is correctly used as my shell.
However, when specifying /bin/bash explicitly, the .bashrc gets sourced
correctly. Any ideas?
*lukas@home*:*~*$ sudo machinectl shell x11
Connected to