- 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)
16 lines
420 B
Bash
Executable File
16 lines
420 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
backup-env-files() {
|
|
if [[ -z "$1" ]]; then echo "\$1 is empty."; exit 1; fi
|
|
|
|
local task_config_dir=${TASK_DOTENV_DIR:-$HOME/.config/taskfile.build}
|
|
local backup_filepath="$1/$(date +'%Y-%m-%d')-backup-env-files.tar.gz"
|
|
|
|
echo "Backing up env files to: $backup_filepath"
|
|
cd "$task_config_dir" || exit 1
|
|
tar -czf "$backup_filepath" .env.*
|
|
}
|
|
bef() {
|
|
backup-env-files "$@"
|
|
}
|