Automate loading default
docker-machine environment and add missing tab completion for Fish Shell.
By default, developer always call eval (docker-machine env default)
during open a new terminal window(tab),
this plugins will automate call the command that you can use docker
command in anywhere. of cause, here is
a variable to set to change default machine name:
# File: ~/.config/fish/config.fish
set -gx DOCKER_DEFAULT_MACHINE "dev"
# Load fisher/omf init script
Tab completion just added basic subcommand description. enjoy it.
Works for Fisherman/Oh My Fish.
# Fisherman
$ fisher install icyleaf/fish-pkg-docker
# oh-my-fish
$ omf install https://github.com/icyleaf/fish-pkg-docker
function | params | description |
---|---|---|
docker-current | Show current used docker machine | |
docker-use | name |
Switch docker machine by name(include reload environment variables) |
Now supported:
- docker
- docker-machine
- docker-compose
- docker-swarm
- docker-cloud