matchai / spacefish

🚀🐟 The fish shell prompt for astronauts
https://spacefish.matchai.dev
MIT License
963 stars 77 forks source link

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

Open liweiwh opened 3 years ago

liweiwh commented 3 years ago

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

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