[systemd-devel] [PATCH 1/3] zsh-completion: add missing completions for machinectl

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Thu Apr 23 06:06:33 PDT 2015


On Wed, Apr 22, 2015 at 12:30:32PM -0700, Lukas Rusak wrote:
> Ah, completely missed images. So perhaps something like this would be
> better?
> 
> machinectl --full --no-legend --no-pager list-images | awk '{print $1}'
We usually try to avoid running external programs unless necessary. This
can be implemented in pure shell which should be slightly faster.

I think you can ignore spaces for now. This is just tab completion after all,
it doesn't have to be bullet proof, and using spaces in image names would be
fairly exotic.

Zbyszek


More information about the systemd-devel mailing list