dotfiles/tools/sagent-op.sh
2025-02-22 18:51:36 +08:00

10 lines
201 B
Bash
Executable File

#!/usr/bin/env bash
set -e
op=$(command -v op || command -v op.exe)
if [[ ! -x $op ]]; then
echo "1password cli not found"
exit -1
fi
"$op" read "op://Personal/id25519-passphrase/$(hostname)"