Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sroze/docker-compose-zsh-plugin
ZSH plugin that display status of project containers
https://github.com/sroze/docker-compose-zsh-plugin
Last synced: about 2 months ago
JSON representation
ZSH plugin that display status of project containers
- Host: GitHub
- URL: https://github.com/sroze/docker-compose-zsh-plugin
- Owner: sroze
- Created: 2015-07-10T16:26:11.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-23T07:52:48.000Z (almost 9 years ago)
- Last Synced: 2024-10-31T23:42:22.365Z (2 months ago)
- Language: Shell
- Size: 27.3 KB
- Stars: 48
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-starred - sroze/docker-compose-zsh-plugin - ZSH plugin that display status of project containers (Shell)
- awesome-starred - sroze/docker-compose-zsh-plugin - ZSH plugin that display status of project containers (Shell)
README
# Docker-Compose ZSH plugin
Add an extra flavor to your ZSH prompt, displaying the machine's name (if isn't `default`) and status of different application
containers.*`dev_test` the machine's name*
![Example of display](example-screenshot.png)
## Getting started
Download the plugin file [docker-compose.plugin.zsh](https://raw.githubusercontent.com/sroze/docker-compose-zsh-plugin/master/docker-compose.plugin.zsh) and move it to `~/.oh-my-zsh/plugins/docker-compose/docker-compose.plugin.zsh`. Then, add the given plugin in your `plugins` list in the `.zshrc` file:
```zsh
plugins=(git docker docker-compose)
```Then, update the shell prompt of your theme. The default theme is `robbyrussell` so you can update the `PROMPT` variable in the file `~/.oh-my-zsh/themes/robbyrussell.zsh-theme`.
You have to add the `$(dock_status)% ` expression like in the following example:
```zsh
PROMPT='${ret_status}%{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} %$(dock_status) % %{$reset_color%}'
```