matchai/spacefish

How to add docker running state check before docker version show?

liweiwh opened this issue · 0 comments

Bug Report

Current Behavior
A clear and concise description of the behavior.

[: unexpected argument at index 2: error shows when open shell in a docker project. (Like attachment)

Expected Behavior
A clear and concise description of what you expected to happen.

how to add docker running state check in ~/.config/fish/functions/__sf_section_docker.fish before show docker version ?

image

Relevant Fish Configuration

# Your configuration here

Default

Environment

  • Spacefish version: 2.7.0
  • Fish version: 3.1.2
  • Fish plugin manager: fisher
  • Terminal emulator: ITerm2
  • Operating system: Latest MacOS

Possible Solution

Hide Docker version.

set SPACEFISH_DOCKER_SHOW false

To Global Variables.

Additional context/Screenshots
Add any other context about the problem here. If applicable, add screenshots to help explain.

image