Fix toolbox:
color-prompt.sh is no longer there by default.
This commit is contained in:
parent
308dfbb2ec
commit
06ce14aae7
3 changed files with 12 additions and 2 deletions
|
@ -33,7 +33,7 @@ RUN set -x \
|
|||
&& ln -s /usr/bin/busted-5.2 /usr/local/bin/busted \
|
||||
##
|
||||
## Prosody
|
||||
&& curl --silent --output /prosody-trunk.tar.gz "https://hg.prosody.im/trunk/archive/0.11.tar.gz" \
|
||||
&& curl --output /prosody-trunk.tar.gz "https://hg.prosody.im/trunk/archive/0.11.tar.gz" \
|
||||
&& mkdir /prosody-src \
|
||||
&& cd /prosody-src \
|
||||
&& tar xzf /prosody-trunk.tar.gz --strip 1 \
|
||||
|
|
|
@ -27,7 +27,6 @@ RUN apk add --update --no-cache --repository http://dl-3.alpinelinux.org/alpine/
|
|||
kubectl
|
||||
|
||||
ADD assets/profile.d/* /etc/profile.d/
|
||||
RUN mv /etc/profile.d/color_prompt /etc/profile.d/color_prompt.sh
|
||||
COPY assets/vimrc /etc/vim/vimrc
|
||||
|
||||
WORKDIR /root
|
||||
|
|
11
toolbox/assets/profile.d/color-prompt.sh
Normal file
11
toolbox/assets/profile.d/color-prompt.sh
Normal file
|
@ -0,0 +1,11 @@
|
|||
# Setup a red prompt for root and a green one for users.
|
||||
# rename this file to color_prompt.sh to actually enable it
|
||||
NORMAL="\[\e[0m\]"
|
||||
RED="\[\e[1;31m\]"
|
||||
GREEN="\[\e[1;32m\]"
|
||||
if [ "$USER" = root ]; then
|
||||
PS1="$RED\h [$NORMAL\w$RED]# $NORMAL"
|
||||
else
|
||||
PS1="$GREEN\h [$NORMAL\w$GREEN]\$ $NORMAL"
|
||||
fi
|
||||
|
Reference in a new issue