diff options
| author | cashmere <cashmere@autistici.org> | 2026-07-16 16:55:45 +0200 |
|---|---|---|
| committer | cashmere <cashmere@autistici.org> | 2026-07-16 16:55:45 +0200 |
| commit | 37be7d671a6d26d8e9bb79a85048d3392fade1b8 (patch) | |
| tree | 3234025047b314ac2222c8d5be74d9c0162d06d3 | |
| parent | 42ceb773d7f15105ac10e176ef593c298c85384a (diff) | |
| download | ports-37be7d671a6d26d8e9bb79a85048d3392fade1b8.tar.gz | |
dotfiles.org: update `.xonshrc`
| -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 |
