configs  Check-in [e0421e090f]

Overview
Comment:zshrc: Don't always have a gpg-agent running

It misbehaves way too often, sometimes trying to use up the entire
virtual address space on the system.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: e0421e090f90b34e63d43fb003a83cf8b25f7e7ce66f67e23dd3f51f63817e38
User & Date: js on 2023-08-06 12:01:01
Other Links: manifest | tags
Context
2023-10-28
15:19
zshrc: Add flunci check-in: 7be34c0a90 user: js tags: trunk
2023-08-06
12:01
zshrc: Don't always have a gpg-agent running check-in: e0421e090f user: js tags: trunk
11:59
zshrc: Use m68k-amigaos-g++ for ObjFW check-in: d0486753ab user: js tags: trunk
Changes

Modified zshrc from [26ba6d2eaa] to [4af549aef5].

362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
362
363
364
365
366
367
368



369
370
371
372
373
374
375







-
-
-







__has_command url2pkg &&
	alias url2pkg="MAKEFLAGS= url2pkg"

# mpv does not like locales that use , as decimal point.
__has_command mpv && alias mpv="LC_ALL=C mpv"

if __has_command gpg gpg2; then
	# Make sure GPG agent is running.
	gpg --card-status &>/dev/null

	alias gssh='SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) ssh -o IdentitiesOnly=no'
	alias gssh-add='SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) ssh-add'
	alias gsftp='SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) sftp -o IdentitiesOnly=no'
fi

if __has_command cryptopassphrase; then
	pwnk() {