Files
git.taskfile.build/bin/show-env
T

8 lines
253 B
Bash
Executable File

#!/bin/bash
function show-env() {
if test -z "$1"; then echo "\$1 is empty."; exit; fi
TASK_CONFIG_DIR=${TASK_CONFIG_DIR:="$HOME/.config/taskfile.build"}
ENV_FILEPATH="$TASK_CONFIG_DIR/.env.$1"
cat "$ENV_FILEPATH" | sed 's/^/export /'
}