configs  Check-in [1990236ded]

Overview
Comment:zshrc: Work around gnupg agent path on Fedora

Fedora seems to put it in $XDG_RUNTIME_DIR/gnupg/<random string>. Check
if $XDG_RUNTIME_DIR/gnupg exists and pick the first socket we find in
there (there should only be one).

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 1990236ded56a1133d651fedfe8dcce43c845a56a7662c167a793c5cabaf52fd
User & Date: js on 2021-03-27 12:14:43
Other Links: manifest | tags
Context
2021-03-29
23:01
Add cycle_asus_fan.sh check-in: e96bea889a user: js tags: trunk
2021-03-27
12:14
zshrc: Work around gnupg agent path on Fedora check-in: 1990236ded user: js tags: trunk
2021-03-26
05:06
Add ssh_config check-in: 7387ac8a42 user: js tags: trunk
Changes

Modified zshrc from [e8fbc62c58] to [d6ca5278aa].

341
342
343
344
345
346
347







348
349
350
351
352
353
354
355
356
357
__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







	alias gssh="SSH_AUTH_SOCK=$GNUPGHOME/S.gpg-agent.ssh ssh"
	alias gssh-add="SSH_AUTH_SOCK=$GNUPGHOME/S.gpg-agent.ssh ssh-add"
	alias gsftp="SSH_AUTH_SOCK=$GNUPGHOME/S.gpg-agent.ssh sftp"
fi

if __has_command cryptopassphrase; then
	pwnk() {
		local clipboard
		if __has_command wl-copy; then
			clipboard=wl-copy







>
>
>
>
>
>
>
|
|
|







341
342
343
344
345
346
347
348
349
350
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"

	alias gssh="SSH_AUTH_SOCK=$sock ssh"
	alias gssh-add="SSH_AUTH_SOCK=$sock ssh-add"
	alias gsftp="SSH_AUTH_SOCK=$sock sftp"
fi

if __has_command cryptopassphrase; then
	pwnk() {
		local clipboard
		if __has_command wl-copy; then
			clipboard=wl-copy