Skip to content

Commit 699da52

Browse files
authored
Move back to rcrc files in dotfiles and fish (#13)
A little bit of yak shaving but turns out I might stick with fish for the time being after all.
1 parent 3c9c573 commit 699da52

6 files changed

Lines changed: 7 additions & 23 deletions

File tree

src/personal-setup/NOTES.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ I've previously (ab)used the _Dev Containers_ extension's built in dotfiles supp
1212
This feature:
1313
- Installs a set of packages in the container (including `rcm` for dotfiles management)
1414
- Mounts my dotfiles repositories into the container
15-
- Copies in an `rcrc` for dotfiles configuration, including:
16-
- setting the correct tags and dotfiles mount locations
17-
- avoiding setting up git config (as VS Code will copy it into the container anyway with
18-
modifications, which would modify our canonical dotfiles version with transient,
19-
container-specific setup)
2015
- Installs the dotfiles
2116

2217
This feature is intended to be configured as part of my personal user settings as a default feature

src/personal-setup/README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Sets up my desired software and configuration for any devcontainer environment.
77

88
```json
99
"features": {
10-
"ghcr.io/csutter/devcontainer-features/personal-setup:3": {}
10+
"ghcr.io/csutter/devcontainer-features/personal-setup:4": {}
1111
}
1212
```
1313

@@ -27,11 +27,6 @@ I've previously (ab)used the _Dev Containers_ extension's built in dotfiles supp
2727
This feature:
2828
- Installs a set of packages in the container (including `rcm` for dotfiles management)
2929
- Mounts my dotfiles repositories into the container
30-
- Copies in an `rcrc` for dotfiles configuration, including:
31-
- setting the correct tags and dotfiles mount locations
32-
- avoiding setting up git config (as VS Code will copy it into the container anyway with
33-
modifications, which would modify our canonical dotfiles version with transient,
34-
container-specific setup)
3530
- Installs the dotfiles
3631

3732
This feature is intended to be configured as part of my personal user settings as a default feature

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": "3.0.0",
3+
"version": "4.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": "/etc/rcrc",
19+
"RCRC": "/mnt/dotfiles/tag-devcontainer/rcrc",
2020
"_IS_DEVCONTAINER": "true"
2121
},
2222
"postCreateCommand": "rcup -vf"

src/personal-setup/install.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,14 @@ echo "Installing packages for distribution: $ID"
1212
case "$ID" in
1313
debian|ubuntu)
1414
apt-get update
15-
apt-get install -y fzf git-delta rcm tree openssh-client
15+
apt-get install -y fish git-delta rcm tree openssh-client
1616
;;
1717
fedora)
18-
dnf install -y fzf git-delta rcm tree openssh-clients
18+
dnf install -y fish git-delta rcm tree openssh-clients
1919
;;
2020
*)
2121
echo "Error: Unsupported distribution: $ID"
2222
echo "This feature supports: debian, ubuntu, fedora"
2323
exit 1
2424
;;
2525
esac
26-
27-
cp rcrc /etc/rcrc

src/personal-setup/rcrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

test/personal-setup/test.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ set -e
44
source dev-container-features-test-lib
55

66
check "delta is available" bash -c "which delta"
7-
check "fzf is available" bash -c "which fzf"
7+
check "fish is available" bash -c "which fish"
88
check "rcm is available" bash -c "which rcup"
99
check "ssh is available" bash -c "which ssh"
1010
check "tree is available" bash -c "which tree"
1111
# Use a dotfile that should _always_ be present on any system
12-
check "dotfiles are installed" bash -c "test -f $HOME/.config/fish/config.fish"
13-
check "rcrc is present" bash -c "test -f /etc/rcrc"
12+
check "dotfiles are installed" bash -c "test -f $HOME/.rcrc"
1413
check "_IS_DEVCONTAINER is set" bash -c "test \"\$_IS_DEVCONTAINER\" = \"true\""
1514

1615
reportResults

0 commit comments

Comments
 (0)