Skip to content

Commit 4ee7883

Browse files
committed
class13: fix PS1 bash variable in the lab
1 parent 1851a1f commit 4ee7883

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

classes/class13/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ RUN mkdir -p /var/run/sshd /root/.ssh
66
COPY sshd_config /etc/ssh/sshd_config
77

88
ENV TERM=xterm-256color
9-
RUN echo "PS1='\e[92m\u\e[0m@\e[94m\h\e[0m:\e[35m\w\e[0m# '" >> /root/.bashrc && \
9+
RUN echo "PS1='\[\e[92m\]\u\[\e[0m\]@\[\e[94m\]\h\[\e[0m\]:\[\e[35m\]\w\[\e[0m\]# '" >> /root/.bashrc && \
1010
echo "export LC_CTYPE=C.UTF-8" >> /root/.bashrc
1111

1212
RUN echo "root:admin" | chpasswd

0 commit comments

Comments
 (0)