- Added alias functions to all bin scripts using first-letter pattern (e.g., `av` for `activate-venv`, `cwl` for `commit-with-llm`) - Implemented collision resolution by extending aliases with additional letters when conflicts occur or when shadowing standard shell commands - Documented alias implementation approach in library.md with complete alias map for reference - Verified shell syntax with `bash -n` and ensured proper argument passing with `"$@"` - Updated prompt frontmatter to reflect completed state and model used (infomaniak/moonshotai/Kimi-K2.6)
19 lines
402 B
Bash
Executable File
19 lines
402 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
reset-git-folder() {
|
|
if [[ -z "$1" ]]; then
|
|
echo '$1/path is empty.'
|
|
exit
|
|
fi
|
|
|
|
local git_folders=$(ls-git-folder "$1")
|
|
for git_folder in $git_folders; do
|
|
echo "Abort rebase and reset git folder $git_folder."
|
|
git -C "$git_folder" rebase --abort
|
|
git -C "$git_folder" reset --hard
|
|
done
|
|
}
|
|
regf() {
|
|
reset-git-folder "$@"
|
|
}
|