Skip to content

Commit

Permalink
Update docker.zsh
Browse files Browse the repository at this point in the history
updated to return docker info when /.dockerevn file exists
  • Loading branch information
codeslake authored and dedene committed Feb 23, 2019
1 parent 3c23db1 commit 30ddfd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sections/docker.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ spaceship_docker() {
spaceship::exists docker || return

# Show Docker status only for Docker-specific folders
[[ -f $COMPOSE_FILE || -f Dockerfile || -f docker-compose.yml ]] || return
[[ -f $COMPOSE_FILE || -f Dockerfile || -f docker-compose.yml || -f /.dockerenv ]] || return

# if docker daemon isn't running you'll get an error saying it can't connect
local docker_version=$(docker version -f "{{.Server.Version}}" 2>/dev/null)
Expand Down

0 comments on commit 30ddfd5

Please sign in to comment.