Skip to content

Asim-Tahir/docker-compose.fish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-compose.fish

Docker Compose plugin for Oh My Fish and Fisher, based loosely on the Oh My Zsh's Docker Compose Plugin

MIT License Fish Shell v3.6.0 Oh My Fish Framework


Install

Oh My Fish:

omf install https://github.com/Asim-Tahir/docker-compose.fish

Fisher:

fisher install Asim-Tahir/docker-compose.fish

Abbreviations Usage

After installing the docker-compose.fish plugin, can inspect the abbreviations with the following command:

abbr --show | grep dcupdb

Note

For all abbreviations, if the docker compose command is available, use docker compose, otherwise use docker-compose.

Up

Abbreviation Command
dcup docker compose up 
dcupb docker compose up --build 
dcupd docker compose up -d 
dcupdb docker compose up -d --build 

Down

Abbreviation Command
dcdn docker compose down

Logs

Abbreviation Command
dcl docker compose logs
dclf docker compose logs -f
dclF docker compose logs -f --tail 0

Lifecycle

Abbreviation Command
dcstart docker compose start
dcstop docker compose stop
dck docker compose kill
dcrestart docker compose restart

Run Command

Abbreviation Command
dce docker compose exec
dcr docker compose run

Everything Else

Abbreviation Command
dco docker compose
dcb docker compose build
dcps docker compose ps
dcrm docker compose rm
dcpull docker compose pull

Credit

Base structure heavily inspired from jhillyerd/plugin-git. Thanks for the amazing plugin.

License

MIT © Asim Tahir