fix: update shell local symlink path to packages/shell#12
Conversation
.stowrc now includes --dir=packages so stow resolves from there; update the manual ln path to match. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Updates the edcloud dotfiles bootstrap script to match a changed dotfiles repo layout where the shell stow package now lives under packages/shell.
Changes:
- Update the hard-coded
ln -sfnsource path for the profile-specific shell local file to"$DOTFILES/packages/shell/...".
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| ln -sfn "$DOTFILES/packages/shell/.config/shell/local.d/edcloud.sh" \ | ||
| "$HOME/.config/shell/local" | ||
|
|
There was a problem hiding this comment.
ln -sfn will happily create/update ~/.config/shell/local even if the source file path is wrong or missing, leaving a broken symlink while the script still prints success. Since this path just changed (and depends on the external dotfiles repo layout), add an explicit check that the source file exists (and fail with a clear error) before running ln, optionally with a fallback to the previous location if you need to support older dotfiles checkouts.
| ln -sfn "$DOTFILES/packages/shell/.config/shell/local.d/edcloud.sh" \ | |
| "$HOME/.config/shell/local" | |
| LOCAL_SRC="$DOTFILES/packages/shell/.config/shell/local.d/edcloud.sh" | |
| if [ ! -f "$LOCAL_SRC" ]; then | |
| echo "Error: expected shell local config not found at: $LOCAL_SRC" | |
| echo "Ensure your dotfiles repo is up to date and the edcloud profile file exists." | |
| exit 1 | |
| fi | |
| mkdir -p "$HOME/.config/shell" | |
| ln -sfn "$LOCAL_SRC" "$HOME/.config/shell/local" |
Summary
ln -sfnpath inscripts/setup-dotfiles.shfrom$DOTFILES/shell/...to$DOTFILES/packages/shell/....stowrcnow includes--dir=packages, so stow resolves automatically from there; the manual symlink path needed to matchTest plan
scripts/setup-dotfiles.shon a fresh edcloud machine and verify the symlink at~/.config/shell/localpoints to the correct file🤖 Generated with Claude Code