matchai / spacefish

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

Update docker.zsh to check if a user is in a docker container #138

Closed matchai closed 5 years ago

matchai commented 5 years ago

🐟 spacefish-bot — Pull request copied from: https://github.com/denysdovhan/spaceship-prompt/pull/531.

updated to return docker info when /.dockerenv file exists

Description

I'm a heavy docker user and I was embarrassed about I had to create Dockerfile or docker...yml file for all the directories that I have to move around.

When docker container is created, /.dockerenv file is created at the same time. This file would be good for checking whether an user is in docker container

matchai commented 5 years ago

:tada: This issue has been resolved in version 2.1.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: