Files
git.taskfile.build/bin/show-dotenv-setup
T
Janik von Rotz f66d0cc2cb feat(dotenv): rename env utilities to dotenv and enhance list-dotenv with project files
- Renamed all env-related scripts to use dotenv naming convention (copy-env → copy-dotenv, create-env → create-dotenv, etc.)
- Updated documentation in library.md and task.template to reflect new script names and .env file references
- Enhanced list-dotenv to also display .env.* files in current directory with type classification (Project/Template)
- Added new show-dotenv-setup script to display KeePass/Pass entry details
- Removed deprecated show-env script in favor of show-dotenv
- Updated install script to reflect renamed scripts and added show-dotenv-setup
- Improved consistency in output messages (e.g., "Init .env file" instead of "Init env file")
2026-01-27 09:09:35 +01:00

11 lines
456 B
Bash
Executable File

#!/usr/bin/env bash
show-dotenv-setup() {
PASS_ENTRY=$(echo "env/${PWD##*/}#$(git symbolic-ref --short -q HEAD)" | tr '[:upper:]' '[:lower:]')
KEEPASS_ENTRY=$(echo "env/${PWD##*/}#$(git symbolic-ref --short -q HEAD)" | tr '[:upper:]' '[:lower:]')
echo "KeePass Database File: $KEEPASS_DATABASE_FILE"
echo "KeePass Database Key File: $KEEPASS_DATABASE_KEY_FILE"
echo "KeePass Entry: $KEEPASS_ENTRY"
echo "Pass Entry: $PASS_ENTRY"
}