tide/functions/_tide_item_docker.fish
Austin Ziegler 26f1a8d572
Support multiple 'default' contexts for Docker (#283)
* Support multiple 'default' contexts for Docker

If someone is using 'colima' instead of Docker Desktop, the default
context is 'colima'. Rather than making two tests with fixed values,
add a new configuration variable and use `contains`.

* Remove non-colour configuration from color files
2022-04-23 15:47:05 -07:00

6 lines
219 B
Fish

function _tide_item_docker
docker context inspect --format '{{.Name}}' | read -l context
contains -- "$context" $tide_docker_default_contexts ||
_tide_print_item docker $tide_docker_icon' ' $context
end