- 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)
30 lines
770 B
Bash
Executable File
30 lines
770 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
create-symlink-files() {
|
|
local source_pattern="$1"
|
|
local target_dir="$2"
|
|
|
|
# Create target directory
|
|
ensure-directory "$target_dir"
|
|
|
|
# Link each file in the source pattern
|
|
for source_file in $source_pattern; do
|
|
if [[ -f "$source_file" ]]; then
|
|
local filename=$(basename "$source_file")
|
|
local target_file="$target_dir/$filename"
|
|
|
|
# Remove existing file if it exists
|
|