浏览代码

dev: automated commit - 2025-09-06 18:25:07

Mariano Z. 5 月之前
父节点
当前提交
8a557666a3
共有 6 个文件被更改,包括 15 次插入0 次删除
  1. 二进制
      gnupg/.gnupg/gpg-agent.conf
  2. 二进制
      gnupg/.gnupg/gpg.conf
  3. 二进制
      gnupg/.gnupg/sshcontrol
  4. 12 0
      local-bin/.local/bin/pinentry-wrapper
  5. 3 0
      zsh/.config/zsh/.zprofile
  6. 二进制
      zsh/.config/zsh/zsh_history_fw

二进制
gnupg/.gnupg/gpg-agent.conf


二进制
gnupg/.gnupg/gpg.conf


二进制
gnupg/.gnupg/sshcontrol


+ 12 - 0
local-bin/.local/bin/pinentry-wrapper

@@ -0,0 +1,12 @@
+#!/bin/sh
+# Context-aware pinentry wrapper
+# Uses pinentry-curses for terminal sessions and pinentry-gtk for GUI sessions
+
+# Check if we're in a graphical environment
+if [ -n "$DISPLAY" ] || [ -n "$WAYLAND_DISPLAY" ]; then
+    # GUI environment - use GTK pinentry
+    exec /usr/bin/pinentry-gtk "$@"
+else
+    # Terminal environment - use curses pinentry
+    exec /usr/bin/pinentry-curses "$@"
+fi

+ 3 - 0
zsh/.config/zsh/.zprofile

@@ -1,6 +1,9 @@
 # === Zsh Profile Configuration ===
 # This file is sourced for login shells
 
+# Source environment configuration (includes GPG setup)
+source ~/.config/env
+
 # Set ZDOTDIR if not already set
 export ZDOTDIR=${ZDOTDIR:-~/.config/zsh}
 

二进制
zsh/.config/zsh/zsh_history_fw