Skip to content

Commit e982517

Browse files
committed
improve readmes
1 parent 78707ec commit e982517

File tree

2 files changed

+29
-16
lines changed

2 files changed

+29
-16
lines changed

.devcontainer/features/bash-config/README.md

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,30 @@
1-
# Lightweight, Configurable BASH Eternal History
1+
# Lightweight, Configurable BASH Config with Eternal History
22

3-
## Defaults
3+
Intended as a lightweight alternative to common-utils.
44

5-
The default, opinionated configuration is defined in
6-
`$HOME/.config/bash-config/bash-config-rc` and includes the following:
5+
## Installation
6+
7+
To use this feature in an individual devcontainer, add the following to your `.devcontainer/devcontainer.json`:
8+
9+
```json
10+
"features": {
11+
"ghcr.io/diamondlightsource/devcontainer-features/bash-config:1": {}
12+
},
13+
"initializeCommand": "mkdir -p ${localEnv:HOME}/.config/bash-config",
14+
```
15+
16+
The initializeCommand is required to create the directory for the bash-config folder in your home folder on the host, the very first time this is executed. Features do not have an InitializeCommand, so the devcontainer.json must do this.
17+
18+
19+
## features
20+
21+
The default, opinionated configuration can be found in `$HOME/.config/bash-config/bash-config-rc` and includes the following:
722

823
- Persistent history across all devcontainers that use this feature
924
- The MS devcontainer bash prompt with git branch and status
1025
- history search with up/down arrows (.inputrc)
1126
- ctrl-left or right arrow for word navigation (.inputrc)
27+
- git autocomplete
1228

1329
## Customisation
1430

README.md

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,25 @@
11
# Dev Container Features
22

3-
Some features for use in Python Copier Template development containers. Also intended to be generally useful in any developer container.
3+
Devcontainer features for use in Python Copier Template or any other devcontainer.
44

55
## bash-config
66

7-
Adds customizations to the bash shell that can be shared across all developer containers using the feature.
7+
Adds customizations to the the bash shell that can be shared across all developer containers using the feature.
88

9-
Default setup attempts to be a lightweight replacement for the common-utils feature zsh capabilities, namely:
10-
11-
- useful prompt
12-
- eternal history (shared across all containers using the feature)
13-
- history search with up/down arrows (.inputrc)
14-
- ctrl-left or right arrow for word navigation (.inputrc)
9+
See details in the [bash-config README](src/bash-config/README.md).
1510

1611
## other
1712

18-
Other features may be added here in future.
13+
Further features may be added here in future.
1914

2015
## Testing
2116

22-
This repo has it's own devcontainer which can be used to do local testing of the features.
17+
This repo has it's own devcontainer which can be used to do local testing and development of the features.
2318

2419
## Publishing Features
2520

26-
CI publishes the features defined here as follows:-
21+
CI verifies and publishes the feature(s) as follows:-
22+
23+
- bash-config: ghcr.io/diamondlightsource/devcontainer-features/bash-config:1
2724

28-
- bash-config: ghcr.io/gilesknap/devcontainer-features/bash-config:latest
25+
(the tag can be major, major.minor, major.minor.patch, or latest)

0 commit comments

Comments
 (0)