Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .devcontainer/features/bash-config/config/bash-config-rc
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash

# default opinioned bash configuration
# DO NOT MODIFY if installed in /bash-config
# this file will be overwritten on each container launch

# enable enternal shared history
export HISTCONTROL=ignoreboth:erasedups
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

# this script is run once inside the developer container after creation time

# Install man so we can do git <command> --help
apt-get update && apt-get install -y --no-install-recommends man
5 changes: 3 additions & 2 deletions .devcontainer/features/bash-config/devcontainer-feature.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"documentationURL": "https://raw.githubusercontent.com/DiamondLightSource/devcontainer-features/refs/heads/main/.devcontainer/features/bash-config/README.md",
"containerEnv": {
"CONFIG_FOLDER": "/bash-config",
"CONFIG_STAGING": "/bash-config-staging"
"CONFIG_STAGING": "/tmp/bash-config"
},
"mounts": [
{
Expand All @@ -17,5 +17,6 @@
"type": "bind"
}
],
"onCreateCommand": "bash /bash-config-staging/onCreateCommand.sh"
"onCreateCommand": "bash /tmp/bash-config/onCreateCommand.sh",
"postCreateCommand": "bash /tmp/bash-config/postCreateCommand.sh"
}
1 change: 1 addition & 0 deletions test/bash-config/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ source dev-container-features-test-lib
# The 'check' command comes from the dev-container-features-test-lib. Syntax is...
# check <LABEL> <cmd> [args...]
check "execute command" bash -c "test $HISTFILE == $CONFIG_FOLDER/.bash_eternal_history"
check "man installed" man -V
check "ls colors" bash -c "test $LS_OPTIONS == --color=auto"

# Report results
Expand Down
Loading