Skip to content

config: refresh fish utilities - #69

Merged
mandaiy merged 2 commits into
mainfrom
config/refresh-fish-utilities
Jul 28, 2026
Merged

config: refresh fish utilities#69
mandaiy merged 2 commits into
mainfrom
config/refresh-fish-utilities

Conversation

@mandaiy

@mandaiy mandaiy commented Jul 27, 2026

Copy link
Copy Markdown
Owner

Summary

  • organize cleanup helpers under Fish conf.d and add cleanup commands
  • add a Colima startup helper and install the new Fish configuration files
  • update Homebrew upgrade behavior and global ignore patterns

Validation

  • git diff --check
  • fish -n fish/config.fish fish/conf.d/cleanup.fish fish/conf.d/colima.fish fish/functions/brew-upgrade.fish
  • python3 -m py_compile init
  • pre-commit run --all-files
  • pre-commit hooks run by git commit

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 72890c83bc

ℹ️ 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".

Comment thread fish/conf.d/cleanup.fish Outdated
end

function cleanup-ds-store
fd -HI ".DS_Store" -X rm

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Match only the exact .DS_Store basename

fd --help states that its pattern is a regular expression by default, so .DS_Store also matches unrelated names such as xDS_Store and MyDS_StoreBackup; testing with fd 9.0.0 confirms that all three names are returned. Because -X rm deletes every match, invoking this cleanup helper can destroy unrelated files. Use an exact glob or an anchored, escaped expression.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 8812acd. The pattern is now anchored and the dot is escaped (^\.DS_Store$), so only the exact .DS_Store basename is matched. I also verified that names such as xDS_Store and MyDS_StoreBackup are excluded.

@@ -1,3 +1,3 @@
function brew-upgrade --description "Upgrade, autoremove, and cleanup Homebrew"
brew upgrade; brew autoremove; brew cleanup --prune=all
brew upgrade -y; brew autoremove; brew cleanup --prune=all

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Remove the unsupported -y upgrade option

When this helper runs with Homebrew, brew upgrade -y is rejected as an invalid option before any packages are upgraded; the semicolons then allow autoremove and cleanup to run anyway. The brew upgrade option list provides no -y switch, and upgrades are already non-interactive by default, so this flag makes the helper consistently fail to perform its primary operation.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current Homebrew documentation lists -y, --no-ask for brew upgrade: https://docs.brew.sh/Manpage#upgrade-options-installed_formula-installed_cask-. The local brew upgrade --help also reports -y, --no-ask, --yes, so -y is supported by the current version and will remain unchanged.

@mandaiy
mandaiy merged commit aba3fae into main Jul 28, 2026
1 check passed
@mandaiy
mandaiy deleted the config/refresh-fish-utilities branch July 28, 2026 05:02
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.

1 participant