configs  Check-in [ce84ad04e7]

Overview
Comment:Rename gpg-s* to gs*
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: ce84ad04e730390e87337424a53e65ad43eb5ad3d38c4cbc6a43e2da560362f8
User & Date: js 2020-09-12 13:17:24
Context
2020-09-18
13:47
Don't rely on tput check-in: b119513a53 user: js tags: trunk
2020-09-12
13:17
Rename gpg-s* to gs* check-in: ce84ad04e7 user: js tags: trunk
2020-09-11
12:51
Make SUDO_PROMPT less blinding check-in: 84ee6c3f2b user: js tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Name change from fish/functions/gpg-sftp.fish to fish/functions/gsftp.fish.

1
2
3
4
function gpg-sftp --wraps sftp
    set -lx SSH_AUTH_SOCK $GNUPGHOME/S.gpg-agent.ssh
    sftp $argv
end
|



1
2
3
4
function gsftp --wraps sftp
    set -lx SSH_AUTH_SOCK $GNUPGHOME/S.gpg-agent.ssh
    sftp $argv
end

Name change from fish/functions/gpg-ssh-add.fish to fish/functions/gssh-add.fish.

1
2
3
4
function gpg-ssh-add --wraps ssh-add
    set -lx SSH_AUTH_SOCK $GNUPGHOME/S.gpg-agent.ssh
    ssh-add $argv
end
|



1
2
3
4
function gssh-add --wraps ssh-add
    set -lx SSH_AUTH_SOCK $GNUPGHOME/S.gpg-agent.ssh
    ssh-add $argv
end

Name change from fish/functions/gpg-ssh.fish to fish/functions/gssh.fish.

1
2
3
4
function gpg-ssh --wraps ssh
    set -lx SSH_AUTH_SOCK $GNUPGHOME/S.gpg-agent.ssh
    ssh $argv
end
|



1
2
3
4
function gssh --wraps ssh
    set -lx SSH_AUTH_SOCK $GNUPGHOME/S.gpg-agent.ssh
    ssh $argv
end

Changes to zshrc.

327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
__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 gpg-ssh="SSH_AUTH_SOCK=$GNUPGHOME/S.gpg-agent.ssh ssh"
	alias gpg-ssh-add="SSH_AUTH_SOCK=$GNUPGHOME/S.gpg-agent.ssh ssh-add"
	alias gpg-sftp="SSH_AUTH_SOCK=$GNUPGHOME/S.gpg-agent.ssh sftp"
fi

if __has_command cryptopassphrase; then
	pwnk() {
		local clipboard
		if __has_command pbcopy; then
			clipboard=pbcopy







|
|
|







327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
__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 pbcopy; then
			clipboard=pbcopy