summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md11
1 files changed, 7 insertions, 4 deletions
diff --git a/README.md b/README.md
index feb95d3..fcc161a 100644
--- a/README.md
+++ b/README.md
@@ -10,15 +10,18 @@
### Essentials
```bash
-git clone https://git.sr.ht/~a14m/.rc
-sudo ln -sf ~/.rc/.gnupg/pinentry-wrapper /usr/local/bin/pinentry-wrapper
+git clone https://git.sr.ht/~a14m/.rc ~/.rc
+
cd ~/.rc
stow --no-folding --adopt .
git restore .
git remote set-url origin [email protected]:~a14m/.rc
+
+ln -sf ~/.rc/.gnupg/pinentry-wrapper ~/.local/bin/pinentry-wrapper
+envsubst < ~/.gnupg/gpg-agent.conf.template > ~/.gnupg/gpg-agent.conf
chmod 0700 ~/.gnupg
-gpgconf --kill gpg-agent
-gpg-connect-agent /bye
+gpgconf --kill gpg-agent 2>/dev/null || true
+gpg-connect-agent /bye 2>/dev/null || true
```
Extra configurations for different distro families: