February 7, 2022

How to Create a Host Dependent Bash Configuration

I use LXD containers to develop locally. To ease development, I share my home directory with the containers. This is convenient, but brings along a couple of issues on its own, especially for .bashrc modifications, which only apply to the host. e.g. activating bash completion for pipx. eval "$(register-python-argcomplete pipx)" This certainly only works on my host, where the binary is on the path, but not in my development containers....