2021-12-10 21:20:23 +03:00
|
|
|
# RUN: %fish %s
|
2022-09-05 19:56:50 +03:00
|
|
|
_tide_parent_dirs
|
2021-12-10 21:20:23 +03:00
|
|
|
|
|
|
|
function _docker
|
|
|
|
_tide_decolor (_tide_item_docker)
|
|
|
|
end
|
|
|
|
|
|
|
|
set -lx tide_docker_icon
|
|
|
|
|
2022-04-29 23:50:15 +03:00
|
|
|
mock docker "context inspect" "echo default"
|
2021-12-10 21:20:23 +03:00
|
|
|
_docker # CHECK:
|
|
|
|
|
2022-04-29 23:50:15 +03:00
|
|
|
mock docker "context inspect" "echo colima"
|
2022-04-24 01:47:05 +03:00
|
|
|
_docker # CHECK:
|
|
|
|
|
2022-04-29 23:50:15 +03:00
|
|
|
mock docker "context inspect" "echo curr-context"
|
2021-12-10 21:20:23 +03:00
|
|
|
_docker # CHECK: curr-context
|
2022-04-24 01:47:05 +03:00
|
|
|
|
2022-04-29 23:50:15 +03:00
|
|
|
mock docker "context inspect" "echo curr-context"
|
2022-04-24 01:47:05 +03:00
|
|
|
set -lx tide_docker_default_contexts curr-context
|
|
|
|
_docker # CHECK:
|