configs  Check-in [00053c8523]

Overview
Comment:zshrc: Make sure GPG agent is running
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 00053c85238edcb1b9f3c1ec19cf236cccaa0396c3965d292c40386912663fb0
User & Date: js on 2021-08-29 07:47:43
Other Links: manifest | tags
Context
2021-08-29
07:48
Merge accidental fork check-in: ca56d0a960 user: js tags: trunk
07:47
zshrc: Make sure GPG agent is running check-in: 00053c8523 user: js tags: trunk
07:45
zshrc: Use GCC 10 for MorphOS cross compiler check-in: 6b57563bb9 user: js tags: trunk
Changes

Modified zshrc from [4c621b900f] to [dd3b047b5a].

351
352
353
354
355
356
357



358
359
360
361
362
363
364
__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



	local sock
	if [ -d "$XDG_RUNTIME_DIR/gnupg" ]; then
		sock=$(find $XDG_RUNTIME_DIR/gnupg -name S.gpg-agent.ssh |
		       head -1)
	fi
	[ -n "$sock" ] || sock="$GNUPGHOME/S.gpg-agent.ssh"








>
>
>







351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
__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

	local sock
	if [ -d "$XDG_RUNTIME_DIR/gnupg" ]; then
		sock=$(find $XDG_RUNTIME_DIR/gnupg -name S.gpg-agent.ssh |
		       head -1)
	fi
	[ -n "$sock" ] || sock="$GNUPGHOME/S.gpg-agent.ssh"