Add bash-git-prompt in order to have a more descriptive prompt when working with repositories.

Also, update documentation for bash-git-prompt usage
This commit is contained in:
Scott Collier
2020-01-20 12:24:18 -06:00
parent ad2b455be5
commit b28f449556
5 changed files with 58 additions and 0 deletions

View File

@ -1253,6 +1253,19 @@ RUN if [ ${INSTALL_GNU_PARALLEL} = true ]; then \
apt-get -y install parallel \
;fi
###########################################################################
# Bash Git Prompt
###########################################################################
ARG INSTALL_GIT_PROMPT=false
COPY git-prompt.sh /tmp/git-prompt
RUN if [ ${INSTALL_GIT_PROMPT} = true ]; then \
git clone https://github.com/magicmonty/bash-git-prompt.git /root/.bash-git-prompt --depth=1 && \
cat /tmp/git-prompt >> /root/.bashrc && \
rm /tmp/git-prompt \
;fi
###########################################################################
# Check PHP version: