From bbada1ebe980b717e312532d64471360e9ac5e2e Mon Sep 17 00:00:00 2001 From: Riddhesh Sanghvi Date: Fri, 20 Sep 2024 17:45:22 +0530 Subject: [PATCH] Add bashrc to identify site in shell Signed-off-by: Riddhesh Sanghvi --- nginx/Dockerfile | 2 ++ nginx/bashrc | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 nginx/bashrc diff --git a/nginx/Dockerfile b/nginx/Dockerfile index 21ca910..79d805e 100644 --- a/nginx/Dockerfile +++ b/nginx/Dockerfile @@ -7,4 +7,6 @@ LABEL org.label-schema.name="nginx" RUN mkdir -p /var/log/nginx; \ mkdir -p /usr/local/openresty/nginx/conf/conf.d COPY conf /usr/local/openresty/nginx/conf +COPY bashrc /root/.bashrc +WORKDIR /var/www/htdocs EXPOSE 80 diff --git a/nginx/bashrc b/nginx/bashrc new file mode 100644 index 0000000..76ae8e6 --- /dev/null +++ b/nginx/bashrc @@ -0,0 +1,2 @@ +PS1="\`if [ \$? = 0 ]; then echo \[\e[37m\]^_^[\u@$VIRTUAL_HOST:\w]\\$ \[\e[0m\]; else echo \[\e[31m\]O_O[\u@$VIRTUAL_HOST:\w]\\$ \[\e[0m\]; fi\`" +export HISTTIMEFORMAT="%d/%m/%y %T " \ No newline at end of file