Add purge containers

main
Julius Riegel 7 months ago
parent 731294f555
commit 1a0e7f969f

@ -15,4 +15,18 @@ alias `shx` = sudo -E helix -c '{{dirs.config}}/helix/config.toml'
alias devshell = nix develop -c $env.SHELL alias devshell = nix develop -c $env.SHELL
{{/if-installed}} {{/if-installed}}
{{#if-installed docker}}
# purge all containers
def `docker purge-containers` [] {
( docker container ls -a --format json
| lines
| each {
let id = (from json | get id);
docker container stop $id;
docker container rm $id;
}
)
}
{{/if-installed}}
def --env `silo cd` [] { silo repo | cd $in } def --env `silo cd` [] { silo repo | cd $in }

Loading…
Cancel
Save