File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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:4 " : {}
10+ "ghcr.io/csutter/devcontainer-features/personal-setup:5 " : {}
1111}
1212```
1313
Original file line number Diff line number Diff line change 11{
22 "id" : " personal-setup" ,
3- "version" : " 4.2 .0" ,
3+ "version" : " 5.0 .0" ,
44 "name" : " Personal Setup" ,
55 "description" : " Sets up my desired software and configuration for any devcontainer environment." ,
66 "mounts" : [
1616 }
1717 ],
1818 "containerEnv" : {
19- "RCRC" : " /mnt/dotfiles/tag-devcontainer/rcrc " ,
19+
2020 "PROMPT_PREFIX" : " " , // Nerd font "remote" icon
2121 "_IS_DEVCONTAINER" : " true"
2222 },
Original file line number Diff line number Diff line change @@ -23,3 +23,10 @@ case "$ID" in
2323 exit 1
2424 ;;
2525esac
26+
27+ echo " Setting up rcm configuration for user: $_REMOTE_USER "
28+ cat > " $_REMOTE_USER_HOME /.rcrc" << 'EOF '
29+ EXCLUDES="README.md"
30+ DOTFILES_DIRS="/mnt/dotfiles /mnt/dotfiles-private"
31+ TAGS="devcontainer"
32+ EOF
Original file line number Diff line number Diff line change @@ -16,7 +16,9 @@ check "ssh is available" bash -c "which ssh"
1616check " tree is available" bash -c " which tree"
1717
1818# Check dotfiles are installed
19- check " dotfiles are installed" bash -c " test -f $HOME /.rcrc"
19+ # WARNING: implicit dependency on the contents of the dotfiles repo
20+ check " rcrc is created" bash -c " test -f $HOME /.rcrc"
21+ check " dotfiles are linked" bash -c " test -L $HOME /.config/git/config_devcontainer"
2022
2123# Check environment variables are set
2224check " _IS_DEVCONTAINER is set" bash -c " test \"\$ _IS_DEVCONTAINER\" = \" true\" "
You can’t perform that action at this time.
0 commit comments