You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Speeding up the command prompt in large repositories
27
+
## OS Support
28
28
29
-
This script provides a custom command prompt that includes information about the git repository for the current folder. However, with certain large repositories, this can result in a slow command prompt since the required git status command can be slow. To resolve this, you can update a git setting to remove the git portion of the command prompt.
29
+
This Feature should work on recent versions of Debian/Ubuntu, RedHat Enterprise Linux, Fedora, RockyLinux, and Alpine Linux.
30
30
31
-
To disable the prompt for the current folder's repository, enter the following in a terminal or add it to your `postCreateCommand` or dotfiles:
31
+
## Customizing the command prompt
32
+
33
+
By default, this script provides a custom command prompt that includes information about the git repository for the current folder. However, with certain large repositories, this can result in a slow command prompt due to the performance of needed git operations.
34
+
35
+
For performance reasons, a "dirty" indicator that tells you whether or not there are uncommitted changes is disabled by default. You can opt to turn this on for smaller repositories by entering the following in a terminal or adding it to your `postCreateCommand`:
32
36
33
37
```bash
34
-
git config codespaces-theme.hide-status 1
38
+
git config devcontainers-theme.show-dirty 1
35
39
```
36
40
37
-
This setting will survive a rebuild since it is applied to the repository rather than the container.
41
+
To completely disable the git portion of the prompt for the current folder's repository, you can use this configuration setting instead:
38
42
43
+
```bash
44
+
git config devcontainers-theme.hide-status 1
45
+
```
39
46
47
+
For `zsh`, the default theme is a [standard Oh My Zsh! theme](https://ohmyz.sh/). You may pick a different one by modifying the `ZSH_THEME` variable in `~/.zshrc`.
0 commit comments