From 883690104bfb7c300c21d27ace2214be64e841ce Mon Sep 17 00:00:00 2001 From: Yax <1949284+kianby@users.noreply.github.com> Date: Mon, 7 Nov 2022 19:50:17 +0100 Subject: [PATCH] fix docker. add cdd var --- dot_bashrc.d/docker.bashrc.tmpl | 2 +- dot_bashrc.tmpl | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dot_bashrc.d/docker.bashrc.tmpl b/dot_bashrc.d/docker.bashrc.tmpl index 51f918d..89a5034 100644 --- a/dot_bashrc.d/docker.bashrc.tmpl +++ b/dot_bashrc.d/docker.bashrc.tmpl @@ -1,5 +1,5 @@ # docker -if docker tig 2>/dev/null; then +if hash docker 2>/dev/null; then export DOCKER_COMPOSE_BIN='{{ .docker_compose_command }}' docker-compose () { diff --git a/dot_bashrc.tmpl b/dot_bashrc.tmpl index 8a58c11..391eac5 100644 --- a/dot_bashrc.tmpl +++ b/dot_bashrc.tmpl @@ -134,6 +134,7 @@ if hash nix-env 2>/dev/null; then fi alias cdd='cd {{ .deploydir }}' +export cdd={{ .deploydir }} # --------------------------------------------------------------------------- # COMPLETIONS