fixes by claude
This commit is contained in:
+1
-8
@@ -76,17 +76,10 @@ _kp_run() {
|
||||
|
||||
kpclose() { _kp_pw_clear && echo "KeePassXC session cleared."; }
|
||||
|
||||
# run with KP_DEBUG=1 to troubleshoot if needed
|
||||
kpgets() { _kp_run show -sa Password "$KEEPASS_DB" "$1"; }
|
||||
kptotps() { _kp_run show -st "$KEEPASS_DB" "$1"; }
|
||||
|
||||
# run with KP_DEBUG=1 to troubleshoot if needed
|
||||
function load_gemini() {
|
||||
if [[ -z "${MY_VARIABLE+set}" ]]; then
|
||||
export GEMINI_API_KEY=$(kpgets "Gemini API Key")
|
||||
echo "Gemini API Key loaded into environment!"
|
||||
fi
|
||||
}
|
||||
|
||||
function totp() {
|
||||
local clip=false
|
||||
[[ "$1" == "-c" ]] && clip=true && shift
|
||||
|
||||
Reference in New Issue
Block a user