Improve Dotfiel startup reliability and test coverage#6
Merged
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit b8af86a. Configure here.
| export SKILLS="$HOME/.cursor/skills" | ||
| export EPICS="$BOKU_PATH/epics" | ||
|
|
||
| export PATH="$PATH:/home/realu/.foundry/bin" |
There was a problem hiding this comment.
Foundry PATH duplicated each setup
Low Severity
Appending Foundry to PATH with export PATH="$PATH:…" inside zshenv re-adds the same directory every time zshenv is sourced. main_bash_setup loads zshenv and runs twice during normal zshrc startup, so each new shell gets duplicate Foundry entries and myrc can stack more.
Reviewed by Cursor Bugbot for commit b8af86a. Configure here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Improve Dotfile Startup Reliability and Test Coverage
This updates the dotfiles setup around shell startup, CI dependencies, and
config synchronization so the environment is easier to reproduce across local
WSL sessions and GitHub Actions.
Key Changes
Add an
is_wslhelper with deterministic Bun tests so WSL detection can bereused safely and verified without depending on the host machine.
Fix the WSL
/run/userremount logic inzshrcby gating it to WSL sessionsand remounting the actual
/run/usermount point withexec, which avoidsjustshebang temp-file failures undernoexec.Add shell dependency install recipes and wire CI to install the baseline
tools needed by tests before running
just test.Harden Cursor CLI config handling for blank runtime config files and expand
test coverage for that case.
Refresh assorted dotfile ergonomics, including tmux copy-mode settings,
Neovim inlay hints, zsh shortcuts, and skill sync formatting/readability.
Note
Low Risk
Changes are limited to dotfile shell/CI setup; the WSL remount still requires
SUDO_PWand only runs when WSL is detected.Overview
Improves WSL startup reliability and test reproducibility by introducing reusable WSL detection and tightening when the shell remounts
/run/userwithexec.Adds
is_wslinbashlib.sh(viaWSL_DISTRO_NAMEor amicrosoft*marker in/proc/versionusing ripgrep), withbashlib.test.tsexercising those paths through a configurablePROC_VERSIONfixture.zshrcnow runs the sudo remount only whenSUDO_PWis set,is_wslsucceeds, andXDG_RUNTIME_DIRlooks like/run/user/*, and remounts/run/userinstead of the per-UID path sojustshebang temp files undernoexeccan execute.CI and local setup gain
just i-bash-ci/i-bashapt recipes; the test workflow installs shell deps beforebun install. Minor shell tweaks includesharexforwarding args,EPICSand Foundry onPATHinzshenv, and small quoting/format fixes inquick.sh.Reviewed by Cursor Bugbot for commit b8af86a. Configure here.