Merge pull request #2472 from collierscott/add-gitprompt

Add bash-git-prompt for more informative prompts for git repos
This commit is contained in:
Shao Yu-Lung (Allen)
2020-02-12 09:17:13 +08:00
committed by GitHub
5 changed files with 58 additions and 0 deletions

View File

@ -1261,6 +1261,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: