Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pierpo/fzf-docker
🐳 Docker completion in zsh using fzf 🌸
https://github.com/pierpo/fzf-docker
docker fzf zsh
Last synced: 2 months ago
JSON representation
🐳 Docker completion in zsh using fzf 🌸
- Host: GitHub
- URL: https://github.com/pierpo/fzf-docker
- Owner: pierpo
- Created: 2017-06-16T12:52:07.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-05-13T12:58:36.000Z (8 months ago)
- Last Synced: 2024-10-11T15:15:15.059Z (3 months ago)
- Topics: docker, fzf, zsh
- Language: Shell
- Homepage:
- Size: 606 KB
- Stars: 50
- Watchers: 2
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Inspired by a contribution of calbertts in [this fzf issue](https://github.com/junegunn/fzf/issues/760).
# What is this?
Auto complete your Docker commands with the currently running containers, using fuzzy search.
![Example usage](https://raw.githubusercontent.com/pierpo/fzf-docker/master/fzf-docker.gif)
# Dependencies
- [fzf](https://github.com/junegunn/fzf)
- [oh-my-zsh](https://github.com/robbyrussell/oh-my-zsh)# Installation
First, install [fzf](https://github.com/junegunn/fzf).
Clone the repo in `.oh-my-zsh/plugins/fzf-docker`
```bash
git clone https://github.com/pierpo/fzf-docker ~/.oh-my-zsh/plugins/fzf-docker
```Then add the plugin to your `.zshrc`
```bash
# In your .zshrc
plugins=(... fzf-docker ...)
```# Usage
If you don't like the `**` prefix (which is a fzf thing), you may change it in your `zshrc`:
```bash
export FZF_COMPLETION_TRIGGER='**'
```I personally put `,` instead :wink:
## Command list
```bash
docker **
```## Remove images
```bash
docker rmi **
```## Start containers
```bash
docker start **
```## Stop containers
```bash
docker stop **
```## Remove containers
```bash
docker rm **
```