Skip to content

Remove unnecessary directory changes in generate-zsh-completions.sh#12

Open
Copilot wants to merge 3 commits intodevelopfrom
copilot/sub-pr-11
Open

Remove unnecessary directory changes in generate-zsh-completions.sh#12
Copilot wants to merge 3 commits intodevelopfrom
copilot/sub-pr-11

Conversation

Copy link
Contributor

Copilot AI commented Feb 14, 2026

Addresses feedback from #11 pointing out that the script defines SCRIPT_DIR but never uses it for relative path operations—all commands use absolute paths via ${ZSH_COMPLETIONS_DIR}.

Changes:

  • Removed cd "${SCRIPT_DIR}" || exit 1
  • Removed cd - || exit 1
  • Removed unused SCRIPT_DIR variable definition

The script now operates without unnecessary directory changes, simplifying the control flow while maintaining identical functionality.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits February 14, 2026 11:23
Co-authored-by: irichu <197713379+irichu@users.noreply.github.com>
Co-authored-by: irichu <197713379+irichu@users.noreply.github.com>
Copilot AI changed the title [WIP] Address feedback on completion commands implementation Remove unnecessary directory changes in generate-zsh-completions.sh Feb 14, 2026
Copilot AI requested a review from irichu February 14, 2026 11:25
@irichu irichu marked this pull request as ready for review February 14, 2026 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants