diff --git a/zshrc b/zshrc index 7153371..11c3787 100644 --- a/zshrc +++ b/zshrc @@ -316,7 +316,11 @@ function tasec() { alias deal="debops" ## Limit to a define host/group function deho() { - debops -l "${ANS_HOST}" + if [ ${ANS_HOST} ]; then + debops -l "${ANS_HOST}" + else + printf '%b' "${MAGENTA}ANS_HOST${RESET} vars is ${REDB}not${RESET} define !\n" + fi } ## Limit to a define host/group and to a role function dero() {