Skip to content

Commit 022da74

Browse files
authored
Merge pull request #826 from parente/color-prompt
Enable color terminal in common cases
2 parents 7db1bd2 + 0023598 commit 022da74

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

base-notebook/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,13 @@ ENV CONDA_DIR=/opt/conda \
4141
ENV PATH=$CONDA_DIR/bin:$PATH \
4242
HOME=/home/$NB_USER
4343

44+
# Add a script that we will use to correct permissions after running certain commands
4445
ADD fix-permissions /usr/local/bin/fix-permissions
45-
# Create jovyan user with UID=1000 and in the 'users' group
46+
47+
# Enable prompt color in the skeleton .bashrc before creating the default NB_USER
48+
RUN sed -i 's/^#force_color_prompt=yes/force_color_prompt=yes/' /etc/skel/.bashrc
49+
50+
# Create NB_USER wtih name jovyan user with UID=1000 and in the 'users' group
4651
# and make sure these dirs are writable by the `users` group.
4752
RUN groupadd wheel -g 11 && \
4853
echo "auth required pam_wheel.so use_uid" >> /etc/pam.d/su && \

0 commit comments

Comments
 (0)