configs  Check-in [33f7534131]

Overview
Comment:zshrc: Add no_hist_bang, map ^P and add gsshfs
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 33f75341315addf122a484ecc5d90c80bad6ba7ba9b97412cbfb949c453e4afa
User & Date: js on 2024-03-05 21:30:41
Other Links: manifest | tags
Context
2024-03-11
21:53
zshrc: Add back sprunge check-in: 6276aeb66b user: js tags: trunk
2024-03-05
21:30
zshrc: Add no_hist_bang, map ^P and add gsshfs check-in: 33f7534131 user: js tags: trunk
2024-02-07
22:30
vimrc: Fix compatibility with vim < 7.3 check-in: e763ba8f40 user: js tags: trunk
Changes

Modified zshrc from [8656a59285] to [0442031747].

55
56
57
58
59
60
61


62
63
64

65
66
67
68
69
70
71
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74







+
+



+







# use those than to switch between modes.
bindkey "^A" beginning-of-line
bindkey "^E" end-of-line
bindkey "^D" delete-char-or-list
# backward-kill-word behaves more like vim, whereas vi-backward-kill-word is
# the vi behaviour.
bindkey "^W" backward-kill-word
# Otherwise not available at all in vi mode.
bindkey "^P" insert-last-word

setopt no_bg_nice
setopt no_nomatch
setopt no_bang_hist
setopt extended_glob
setopt autocd
setopt auto_pushd

autoload -U compinit
compinit -C

389
390
391
392
393
394
395




396
397
398
399
400
401
402
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409







+
+
+
+







# 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=$(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'

	if __has_command sshfs; then
		alias gsshfs='SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) sshfs -o IdentitiesOnly=no'
	fi
fi

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