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

9 lines
239 B
Bash
Executable File

#!/bin/bash
function edit-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"
"$EDITOR" "$ENV_FILEPATH"
}