You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[bin+zsh] dotfiles-search-commits: expand functionality and migrate from alias to standalone script #36
In our current local WIP state, the dotfiles-search-commits helper has evolved well beyond its original form as a simple alias for grepping commit logs. It now supports multiple modes (log, log-recent, code) with aliases, regex options (basic/extended/perl), structured help/error handling, implicit fallbacks for common cases, and clearer usage examples.
While this expansion significantly improves usability, it also introduces complexity around return vs exit behavior when defined as a shell function inside aliases.zsh. Sourcing functions that use exit can inadvertently terminate the entire interactive shell session. At this stage, it’s more sustainable to promote this into a proper bin/ script so that it behaves like a standalone CLI tool without these caveats.
Zsh Script Patterns: Handling Nested Function Exits and Returns Without Killing Your Shell
Remaining TODOs / Known Issues:
Migrate implementation from zsh/aliases.zsh into bin/dotfiles-search-commits (or bin/dotfiles-history? which should be the name and which the alias?) for safer execution.
Update aliases to correctly point to the new bin/ script (if they are still needed)
Activity