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: 1 addition & 1 deletion src/personal-setup/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "personal-setup",
"version": "4.1.0",
"version": "4.2.0",
"name": "Personal Setup",
"description": "Sets up my desired software and configuration for any devcontainer environment.",
"mounts": [
Expand Down
4 changes: 2 additions & 2 deletions src/personal-setup/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ echo "Installing packages for distribution: $ID"
case "$ID" in
debian|ubuntu)
apt-get update
apt-get install -y fish git-delta rcm tree openssh-client
apt-get install -y curl fd-find fish git-delta jq less openssh-client rcm ripgrep tree
;;
fedora)
dnf install -y fish git-delta rcm tree openssh-clients
dnf install -y curl fd-find fish git-delta jq less openssh-clients rcm ripgrep tree
;;
*)
echo "Error: Unsupported distribution: $ID"
Expand Down
21 changes: 15 additions & 6 deletions test/personal-setup/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,22 @@ set -e

source dev-container-features-test-lib

check "delta is available" bash -c "which delta"
check "fish is available" bash -c "which fish"
check "rcm is available" bash -c "which rcup"
check "ssh is available" bash -c "which ssh"
check "tree is available" bash -c "which tree"
# Use a dotfile that should _always_ be present on any system
# Check packages are installed and available
check "curl is available" bash -c "which curl"
check "delta is available" bash -c "which delta"
check "fd is available" bash -c "which fd || which fdfind"
check "fish is available" bash -c "which fish"
check "jq is available" bash -c "which jq"
check "less is available" bash -c "which less"
check "rcm is available" bash -c "which rcup"
check "ripgrep is available" bash -c "which rg"
check "ssh is available" bash -c "which ssh"
check "tree is available" bash -c "which tree"

# Check dotfiles are installed
check "dotfiles are installed" bash -c "test -f $HOME/.rcrc"

# Check environment variables are set
check "_IS_DEVCONTAINER is set" bash -c "test \"\$_IS_DEVCONTAINER\" = \"true\""
check "PROMPT_PREFIX is set" bash -c "test \"\$PROMPT_PREFIX\" = \"\""

Expand Down