Skip to content

Commit 2262a04

Browse files
committed
Bundle rcrc with personal setup feature
This helps me get rid of the slightly confusing tag structure in my dotfiles by moving `rcrc` files out of being managed by RCM.
1 parent 6d19ab8 commit 2262a04

4 files changed

Lines changed: 8 additions & 2 deletions

File tree

src/personal-setup/devcontainer-feature.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"id": "personal-setup",
3-
"version": "1.4.0",
3+
"version": "2.0.0",
44
"name": "Personal Setup",
55
"description": "Sets up my desired software and configuration for any devcontainer environment.",
66
"mounts": [
@@ -16,7 +16,7 @@
1616
}
1717
],
1818
"containerEnv": {
19-
"RCRC": "/mnt/dotfiles/tag-devcontainer/rcrc",
19+
"RCRC": "/etc/rcrc",
2020
"_IS_DEVCONTAINER": "true"
2121
},
2222
"postCreateCommand": "rcup -vf"

src/personal-setup/install.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@ case "$ID" in
2323
exit 1
2424
;;
2525
esac
26+
27+
cp rcrc /etc/rcrc

src/personal-setup/rcrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
EXCLUDES="*.md config/git/config"
2+
TAGS="devcontainer"
3+
DOTFILES_DIRS="/mnt/dotfiles /mnt/dotfiles-private"

test/personal-setup/test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ check "tree is available" bash -c "which tree"
1010
check "ssh is available" bash -c "which ssh"
1111
# Use a dotfile that should _always_ be present on any system
1212
check "dotfiles are installed" bash -c "test -f $HOME/.config/fish/config.fish"
13+
check "rcrc is present" bash -c "test -f /etc/rcrc"
1314
check "_IS_DEVCONTAINER is set" bash -c "test \"\$_IS_DEVCONTAINER\" = \"true\""
1415

1516
reportResults

0 commit comments

Comments
 (0)