Inspired by a contribution of calbertts in this fzf issue.
Auto complete your Docker commands with the currently running containers, using fuzzy search.
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-dockerThen add the plugin to your .zshrc
# In your .zshrc
plugins=(... fzf-docker ...)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 ๐
docker **<TAB>docker rmi **<TAB>docker start **<TAB>docker stop **<TAB>docker rm **<TAB>