- 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)
17 lines
452 B
Bash
Executable File
17 lines
452 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
show-dotenv() {
|
|
if [[ -z "$1" ]]; then echo "\$1 is empty."; exit; fi
|
|
TASK_DOTENV_DIR=${TASK_DOTENV_DIR:="$HOME/.config/taskfile.build"}
|
|
|
|
local env_filepath="$TASK_DOTENV_DIR/.env.$1"
|
|
if [[ ! -f "$env_filepath" ]]; then
|
|
echo "Environment '$1' not found."
|
|
return 1 # Exit with non-zero status if file does not exist
|
|
fi
|
|
cat "$env_filepath" | sed 's/^/export /'
|
|
}
|
|
sd() {
|
|
show-dotenv "$@"
|
|
}
|