Skip to content

๐Ÿณ Docker completion in zsh using fzf ๐ŸŒธ

Notifications You must be signed in to change notification settings

pierpo/fzf-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

28 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Inspired by a contribution of calbertts in this fzf issue.

What is this?

Auto complete your Docker commands with the currently running containers, using fuzzy search.

Example usage

Dependencies

Installation

First, install fzf.

Clone the repo in .oh-my-zsh/plugins/fzf-docker

git clone https://github.com/pierpo/fzf-docker ~/.oh-my-zsh/plugins/fzf-docker

Then add the plugin to your .zshrc

# 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:

export FZF_COMPLETION_TRIGGER='**'

I personally put , instead ๐Ÿ˜‰

Command list

docker **<TAB>

Remove images

docker rmi **<TAB>

Start containers

docker start **<TAB>

Stop containers

docker stop **<TAB>

Remove containers

docker rm **<TAB>

About

๐Ÿณ Docker completion in zsh using fzf ๐ŸŒธ

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages