diff --git a/zsh.d/50_docker_aliases.zsh b/zsh.d/50_docker_aliases.zsh new file mode 100644 index 0000000..5711f8a --- /dev/null +++ b/zsh.d/50_docker_aliases.zsh @@ -0,0 +1,11 @@ +# vim: ft=zsh + +if command-exists "docker"; then + if ! command-exists "k9s"; then + alias k9s='docker run --network host -it --rm -v ~/.kube:/root/.kube quay.io/derailed/k9s' + fi + + if ! command-exists "dive"; then + alias dive='docker run -ti --rm -v /var/run/docker.sock:/var/run/docker.sock wagoodman/dive' + fi +fi