feat: update install script#11
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e3616db25a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| ok "Added bash completion to ${dir}/${BINARY} — restart your shell to enable" | ||
| completion_dir="${XDG_DATA_HOME:-$HOME/.local/share}/bash-completion/completions" | ||
| completion_path="$completion_dir/$BINARY" | ||
| [ -f "$completion_path" ] && completion_configured=true |
There was a problem hiding this comment.
Regenerate static completions after upgrades
When a bash completion file already exists, this now treats mere presence as current and skips writing a new one; during a normal latest upgrade or CHATWOOT_VERSION change, users keep the old static completion script, so new/renamed commands and flags from the installed binary are not completed. The same pattern is used for fish just below, while zsh’s sourced command is dynamic.
Useful? React with 👍 / 👎.
No description provided.