Skip to content

fix(zsh): resolve shellcheck parse errors in dot_zshrc.tmpl - #173

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
droid/ghi168-fix-zshrc-shellcheck
Open

fix(zsh): resolve shellcheck parse errors in dot_zshrc.tmpl#173
github-actions[bot] wants to merge 1 commit into
mainfrom
droid/ghi168-fix-zshrc-shellcheck

Conversation

@github-actions

@github-actions github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Automated fix attempt

This PR was generated by the droid-issue-fixer GitHub Action, which runs droid exec headlessly to attempt an open issue.

Closes #168

Droid exec summary

Fixed issue #168.

Changed dot_zshrc.tmpl so the rendered zshrc no longer triggers shellcheck parse errors:

  • Rewrote the one-line function zle-line-init { ... } definition as a POSIX-style zle-line-init() { ... } multi-line function, with a comment explaining why.
  • Added the missing ; before then in every one-line if [[ ... ]] then block (atuin env, atuin init, starship, thefuck, Factory.app, factory, LM Studio).

Validation:

  • chezmoi execute-template --config "$CHEZMOI_CI_CONFIG" < dot_zshrc.tmpl renders successfully.
  • shellcheck --shell=sh on the rendered output no longer reports the SC1073/SC1083 brace-group parse error, the cascading SC1056/SC1072 missing-} errors, or any SC1010 missing-separator warnings.

The remaining POSIX-sh dialect warnings (e.g. [[ ]], &>, source) are expected because this file is a zshrc, not a POSIX shell script.

Rewrite the one-line zle-line-init function to POSIX-style syntax and add

the missing semicolon before 'then' in one-line 'if [[ ... ]] then'

statements. This removes the SC1073/SC1083 parse error and the cascading

SC1056/SC1072 missing-brace errors, and satisfies SC1010.

Fixes #168
@github-actions github-actions Bot added the droid PR generated by droid-issue-fixer action label Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

droid PR generated by droid-issue-fixer action

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[sweeper] dot_zshrc.tmpl

1 participant