Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hadenlabs/zsh-docker
alias for docker aliases
https://github.com/hadenlabs/zsh-docker
docker hadenlabs peru plugins zsh
Last synced: 24 days ago
JSON representation
alias for docker aliases
- Host: GitHub
- URL: https://github.com/hadenlabs/zsh-docker
- Owner: hadenlabs
- License: lgpl-3.0
- Created: 2017-02-18T05:54:15.000Z (almost 8 years ago)
- Default Branch: develop
- Last Pushed: 2024-01-02T16:43:17.000Z (about 1 year ago)
- Last Synced: 2024-04-16T01:33:18.139Z (9 months ago)
- Topics: docker, hadenlabs, peru, plugins, zsh
- Language: Shell
- Homepage:
- Size: 5 MB
- Stars: 11
- Watchers: 3
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: docs/contributing.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: docs/code_of_conduct.md
Awesome Lists containing this project
README
[![Latest Release](https://img.shields.io/github/release/hadenlabs/zsh-docker)](https://github.com/hadenlabs/zsh-docker/releases) [![Lint](https://img.shields.io/github/workflow/status/hadenlabs/zsh-docker/lint-code)](https://github.com/hadenlabs/zsh-docker/actions?workflow=lint-code) [![CI](https://img.shields.io/github/workflow/status/hadenlabs/zsh-docker/ci)](https://github.com/hadenlabs/zsh-docker/actions?workflow=ci) [![Test](https://img.shields.io/github/workflow/status/hadenlabs/zsh-docker/test)](https://github.com/hadenlabs/zsh-docker/actions?workflow=test) [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit) [![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow)](https://conventionalcommits.org) [![KeepAChangelog](https://img.shields.io/badge/changelog-Keep%20a%20Changelog%20v1.0.0-orange)](https://keepachangelog.com)
# zsh-docker
zsh-docker for project
## Requirements
This is a list of plugins that need to be installed previously to enjoy all the goodies of this configuration:
- [zsh-core](https://github.com/hadenlabs/zsh-core)
- [gomplate](https://github.com/hairyhenderson/gomplate)
- [python](https://www.python.org)
- [taskfile](https://github.com/go-task/task)## Installation
### [oh-my-zsh](https://github.com/ohmyzsh/ohmyzsh) users
If you're using [oh-my-zsh](https://github.com/ohmyzsh/ohmyzsh), install this plugin by doing the following:
1. Go to your oh-my-zsh custom plugins directory -`cd ~/.oh-my-zsh/custom/plugins`
2. Clone the plugin `bash git clone https://github.com/hadenlabs/zsh-docker`bash
3. Edit your `.zshrc` and add `plugins=( ... zsh-docker )` to your list of plugins
4. Open a new terminal and enjoy!
### [antigen](https://github.com/zsh-users/antigen) users
If you're using [Antigen](https://github.com/zsh-users/antigen), install this plugin by doing the following:
1. Add `antigen bundle hadenlabs/zsh-docker` to your `.zshrc` where you're adding your other plugins.
2. Either open a new terminal to force zsh to load the new plugin, or run `antigen bundle hadenlabs/zsh-docker` in a running zsh session.
3. Enjoy!
### [antibody](https://github.com/getantibody/antibody) users
If you're using [Antibody](https://github.com/getantibody/antibody), install this plugin by doing the following:
1. Add :
```{.sourceCode .bash}
antibody bundle hadenlabs/zsh-docker
```to your `.zshrc` where you're adding your other plugins.
2. Either open a new terminal to force zsh to load the new plugin, or run `antibody bundle hadenlabs/zsh-docker` in a running zsh session.
3. Enjoy!## Usage
# How to use this project
## Functions
zsh docker includes a small utility `docker`.
#### `docker::login`
docker login using `DOCKERHUB_USERNAME` and `DOCKERHUB_TOKEN`
#### `docker::clean::all`
docker clean all
#### `docker::clean::dangling`
docker clean dangling
#### `docker::clean::images::all`
docker clean images all
#### `docker::clean::images::dangling`
docker clean images with filter `dangling`
#### `docker::clean::process::all`
docker clean process all
#### `docker::clean::process::dangling`
docker clean process with filter `dangling`
#### `docker::clean::volume::all`
docker clean volume all
#### `docker::clean::volume::dangling`
docker clean volume with filter `dangling`
#### `docker::clean::network::all`
docker clean network all
#### `docker::clean::network::dangling`
docker clean network with filter `dangling`
#### `docker::process::list`
docker show list procces
#### `docker::process::stop::all`
docker stop procces all
#### `docker::process::stop::exited`
docker stop procces with filter `exited`
#### `docker::clean::process::delete::all`
docker stop procces all
#### `docker::volume::delete::all`
docker volume delete all
#### `docker::volume::list::all`
docker volume list all
#### `docker::volume::delete::exited`
docker volume delete with filter `exited`
#### `docker::volume::delete::dangling`
docker volume delete with filter `dangling`
#### `docker::container::delete::all`
docker container delete all
#### `docker::container::stop::all`
docker container stop all
#### `docker::network::delete::all`
docker network delete all
## Help
**Got a question?**
File a GitHub [issue](https://github.com/hadenlabs/zsh-docker/issues).
## Contributing
See [Contributing](./docs/contributing.md).
## Module Versioning
This Module follows the principles of [Semantic Versioning (SemVer)](https://semver.org/).
Using the given version number of `MAJOR.MINOR.PATCH`, we apply the following constructs:
1. Use the `MAJOR` version for incompatible changes.
1. Use the `MINOR` version when adding functionality in a backwards compatible manner.
1. Use the `PATCH` version when introducing backwards compatible bug fixes.### Backwards compatibility in `0.0.z` and `0.y.z` version
- In the context of initial development, backwards compatibility in versions `0.0.z` is **not guaranteed** when `z` is increased. (Initial development)
- In the context of pre-release, backwards compatibility in versions `0.y.z` is **not guaranteed** when `y` is increased. (Pre-release)## Copyright
Copyright © 2018-2022 [Hadenlabs](https://hadenlabs.com)
## Trademarks
All other trademarks referenced herein are the property of their respective owners.
## License
The code and styles are licensed under the LGPL-3.0 license [See project license.](LICENSE).
## Don't forget to 🌟 Star 🌟 the repo if you like zsh-docker
[Your feedback is appreciated](https://github.com/hadenlabs/zsh-docker/issues)