dotfiles/bin/pwenv
2019-10-19 12:36:38 +02:00

7 lines
134 B
Bash
Executable file

#!/bin/bash
set -eu
var="$1"
shift
exec env ${var}=$(systemd-ask-password --accept-cached --keyname="pwenv.${var}" "${var}: ") "$@"