diff options
Diffstat (limited to 'dotfiles.org')
| -rw-r--r-- | dotfiles.org | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/dotfiles.org b/dotfiles.org index 50c5c7f..10764c6 100644 --- a/dotfiles.org +++ b/dotfiles.org @@ -107,8 +107,14 @@ exec i3 import subprocess, shutil $PATH.insert(0, $HOME + '/.cargo/bin') +$PATH.insert(0, $HOME + '/.local/bin') + $GPG_TTY = $(tty).strip() -subprocess.run(["gpg-connect-agent", "updatestartuptty", "/bye"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) + +if shutil.which("gpg-agent"): + subprocess.run(["gpgconf", "--launch", "gpg-agent"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) + $SSH_AUTH_SOCK = $(gpgconf --list-dirs agent-ssh-socket).strip() + subprocess.run(["gpg-connect-agent", "updatestartuptty", "/bye"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) if shutil.which("atuin"): running = subprocess.run(["pgrep", "-x", "atuin"], capture_output=True).returncode == 0 |
