Browse Source

actually do not show git branch in bash prompt

Andy Li 3 years ago
parent
commit
3712794fc8
1 changed files with 4 additions and 4 deletions
  1. 4 4
      Earthfile

+ 4 - 4
Earthfile

@@ -84,11 +84,11 @@ devcontainer:
     COPY +earthly/earthly /usr/local/bin/
     RUN earthly bootstrap --no-buildkit --with-autocomplete
 
-    USER $USER
+    USER $USERNAME
 
-    # Do not show git branch in bash prompt
-    # It's slow
-    RUN sed -ir 's/^__bash_prompt$/PS1="\\[\\033[0;32m\\]\\u \\[\\033[0m\\]➜ \\[\\033[1;34m\\]\\w\\[\\033[0m\\]\\$ "/' ~/.bashrc
+    # Do not show git branch in bash prompt because it's slow
+    # https://github.com/microsoft/vscode-dev-containers/issues/1196#issuecomment-988388658
+    RUN git config --global codespaces-theme.hide-status 1
 
     USER root