GithubHelp home page GithubHelp logo

00mjk / docker-machine-zsh-completion Goto Github PK

View Code? Open in Web Editor NEW

This project forked from leonhartx/docker-machine-zsh-completion

0.0 0.0 0.0 18 KB

A more functional and up-to-date zsh completion for docker-machine

License: MIT License

docker-machine-zsh-completion's Introduction

docker-machine-zsh-completion

A more functional and up-to-date zsh completion for docker-machine

This has been merged in docker-machine, but clone this repo to your completion path maybe a good way to easily keep it up-to-date.

Installing Command Completion

Manual installation

Place the completion scripts in your /path/to/zsh/completion, using e.g. ~/.zsh/completion/

mkdir -p ~/.zsh/completion
git clone https://github.com/leonhartX/docker-machine-zsh-completion.git ~/.zsh/completion/docker-machine

Include the directory in your $fpath, e.g. by adding in ~/.zshrc

fpath=(~/.zsh/completion/docker-machine $fpath)

Make sure compinit is loaded or do it by adding in ~/.zshrc

autoload -Uz compinit && compinit -i

Then reload your shell

exec $SHELL -l

Using oh-my-zsh

If you use oh-my-zsh then just clone the repository inside your oh-my-zsh repo:

git clone https://github.com/leonhartX/docker-machine-zsh-completion.git ~/.oh-my-zsh/custom/plugins/docker-machine

and enable it in your .zshrc:

plugins+=(docker-machine)
autoload -U compinit && compinit

Available completions

Depending on what you typed on the command line so far, it will complete

  • available docker-machine commands
  • options that are available for a particular command
  • machine names that make sense in a given context (e.g. docker-machine ip with only running machines vs. docker-machine rm with all machines).
  • swarm discovery that are available to join in.
  • driver options (e.g. amazonec2-ami) that are available for a particular driver after the --driver,-d options is specified.
  • arguments for selected options, e.g. docker-machine ls --filter will complete some filter options like driver and name.

docker-machine-zsh-completion's People

Contributors

leonhartx avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.