mirror of
https://github.com/DictXiong/dotfiles.git
synced 2025-07-04 15:10:29 +08:00
10 lines
223 B
Bash
Executable File
10 lines
223 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
op=$(command -v op || command -v op.exe || true)
|
|
if [[ ! -x $op ]]; then
|
|
echo "1password cli not found" > /dev/stderr
|
|
exit -1
|
|
fi
|
|
"$op" read "op://Personal/id25519-passphrase/$(hostname)"
|