$PATH/bash-completion not being set on non-login shells

I’m using snapd on Debian testing, and noticed that when I’m inside my i3+mate session, open mate-terminal and try to invoke lxc (i.e., lxd), it doesn’t work. This was working correctly before.

I understand the idiosyncrasies of reading /etc/profile and all, so I’ve modified my ~/.bashrc to source /etc/profile (ugly solution, I know). This allows me to invoke lxc, but I still can’t complete its options and subcommands. Somehow, bash-completion also stopped working.

I’ve been trying to find the reason for this misbehaviour, but haven’t had much success so far. What seems strange to me is that everything was working correctly before, and I don’t remember doing anything that could have caused this issue.

Does anyone have any tips/suggestions?

snap    2.47.1
snapd   2.47.1
series  16
debian  -
kernel  5.9.0-1-amd64
1 Like