- 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)
29 lines
781 B
Bash
Executable File
29 lines
781 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
pull-all-repos(){
|
|
echo "Pull all git repos in $HOME."
|
|
repos=()
|
|
for repo in $(find "$HOME" -maxdepth 3 -type d -name '.git'); do
|
|
repos+=("$(basename "$(dirname "$repo")")")
|
|
done
|
|
echo "Repos to pull: ${repos[*]}"
|
|
|
|
for repo in $(find "$HOME" -maxdepth 2 -type d -name '.git'); do
|
|
dir=$(dirname "$repo")
|
|
|
|
echo "Pull $(git -C "$dir" branch --show-current) in $dir"
|
|
git -C "$dir" pull
|
|
|
|
echo "Pull submodules in $dir"
|
|
git -C "$dir" submodule update --recursive --remote
|
|
done
|
|
|
|
echo "Pull selected repos."
|
|
~/knowledge/task pull-repos
|
|
git -C ~/Ansible-Build/inventories pull
|
|
git -C ~/Ansible-Build/inventories/sozialinfo pull
|
|
}
|
|
par() {
|
|
pull-all-repos "$@"
|
|
}
|