|
2 | 2 |
|
3 | 3 | ## Defaults |
4 | 4 |
|
5 | | -When this feature is first called, onCreateCommand.sh is created and called in `devcontainer-feature`. |
6 | | -This creates and installs a default bash terminal configuration from `feature_settings_rc` which contains opinionated default BASH terminal settings such as: |
7 | | -* A minimalist, blue bash prompt. |
8 | | -* Eternal, shared history between containers using this feature. |
9 | | - |
10 | | -## Customisation |
11 | | - |
12 | | -The user can specify their own terminal preferences in `$CONFIG_STAGING/bashrc`, which defaults to `/devcontainer_staging/bashrc`. |
13 | | -Then the container is rebuilt, if `bashrc` already exists it won't be overwritten, preserving changes. If the container has been built once already, the existing bashrc must be deleted in order for your changes to be applied. |
| 5 | +The default, opinionated configuration is defined in |
| 6 | +`$HOME/.config/bash-config/bash-config-rc` and includes the following: |
14 | 7 |
|
| 8 | +- Persistent history across all devcontainers that use this feature |
| 9 | +- The MS devcontainer bash prompt with git branch and status |
| 10 | +- history search with up/down arrows (.inputrc) |
| 11 | +- ctrl-left or right arrow for word navigation (.inputrc) |
15 | 12 |
|
| 13 | +## Customisation |
16 | 14 |
|
17 | | -creates staging folder in container |
18 | | -creates onCreateCommand.sh in the staging folder |
19 | | -inputrc and bashrc are also created in the staging folder, containing incremental history searching and user customisations respectively |
20 | | -feature_settings_rc is created in the staging fodler, which contains a PS1 setup and opinionated terminal features |
21 | | -"onCreateCommand" is then exectuted inside the container during finalisation of container setup. |
22 | | - - This copies the contents of feature_settings_rc into devcontainer_rc |
23 | | - - then copies bashrc and inputrc into the container, unless they exist already to prevent overwriting user edits |
24 | | - - then adds root permissions. |
25 | | -A symbolic link to /root/ is created The items in the CONFIG_FOLDER |
26 | | -our bashrc is called by /root/.bashrc |
| 15 | +Can be customized by editing `$HOME/.config/bash-config/bashrc` |
0 commit comments