mirror of
https://github.com/Crocmagnon/dotfiles.git
synced 2024-12-22 05:41:51 +01:00
Add ddown function
This commit is contained in:
parent
bab777e06f
commit
c204cea625
1 changed files with 5 additions and 0 deletions
5
dot_config/fish/private_functions/ddown.fish
Normal file
5
dot_config/fish/private_functions/ddown.fish
Normal file
|
@ -0,0 +1,5 @@
|
|||
function ddown
|
||||
set -l workdir (docker inspect -f '{{ index .Config.Labels "com.docker.compose.project.working_dir" }}' (docker ps -q | head -n1))
|
||||
set -l compose_file (docker inspect -f '{{ index .Config.Labels "com.docker.compose.project.config_files" }}' (docker ps -q | head -n1))
|
||||
docker-compose -f "$workdir/$compose_file" down
|
||||
end
|
Loading…
Reference in a new issue