Instead of having a big .bash_aliases with commands that may not work if packages are not installed, add chunks of aliases with bundles where possible (e.g. with the Git bundle) using the ~/.bash_aliases.local file.
There could be a simple internal tool to add/update/remove the chunks inside said local file, surrounding it by special comments so the user knows that it may be overriden and to signal the tool where the chunk starts/ends.
Instead of having a big
.bash_aliases
with commands that may not work if packages are not installed, add chunks of aliases with bundles where possible (e.g. with the Git bundle) using the~/.bash_aliases.local
file. There could be a simple internal tool to add/update/remove the chunks inside said local file, surrounding it by special comments so the user knows that it may be overriden and to signal the tool where the chunk starts/ends.