(...)
> [defaults]
> revert = --no-backup
> diff = -g
> export = -g -o %%b-%%R:%%h.patch
> email = -g
Nothing prevents you from implementing the configuration to understand
[alias]
rev = revert
revert = revert --no-backup
diff = diff -g
etc.
with some given semantics. (I guess we would need "inverses" to options
if the Mercurial strategy is followed; so if "defaults.run = -rm" and
you do not want to "-rm", you should be able to do "docker run -no-rm"
or similarly. Or, how does Mercurial solve this?)
> I would not be interested in aliasing "docker" commands
> because it increases mental effort.
Noone forces you to create aliases, neither "scoped" nor shell aliases,
but I see people actually do both.
> I'd rather just have a simple straight forward way of setting default
> options for various commands -- Assuming such a ~/.dockerrc cottoned
> on at all. (I would prefer .dockerrc over .dockercconfig)
You're right, ~/.dockerrc is more aligned with everything else (but
git which is probably strange in this regard).
Kindly,
--
Casper Thomsen