zshrc: Add no_hist_bang, map ^P and add gsshfs
This commit is contained in:
parent
7bd5059a38
commit
461d45c964
1 changed files with 7 additions and 0 deletions
7
zshrc
7
zshrc
|
@ -59,9 +59,12 @@ bindkey "^D" delete-char-or-list
|
||||||
# backward-kill-word behaves more like vim, whereas vi-backward-kill-word is
|
# backward-kill-word behaves more like vim, whereas vi-backward-kill-word is
|
||||||
# the vi behaviour.
|
# the vi behaviour.
|
||||||
bindkey "^W" backward-kill-word
|
bindkey "^W" backward-kill-word
|
||||||
|
# Otherwise not available at all in vi mode.
|
||||||
|
bindkey "^P" insert-last-word
|
||||||
|
|
||||||
setopt no_bg_nice
|
setopt no_bg_nice
|
||||||
setopt no_nomatch
|
setopt no_nomatch
|
||||||
|
setopt no_bang_hist
|
||||||
setopt extended_glob
|
setopt extended_glob
|
||||||
setopt autocd
|
setopt autocd
|
||||||
setopt auto_pushd
|
setopt auto_pushd
|
||||||
|
@ -393,6 +396,10 @@ if __has_command gpg gpg2; then
|
||||||
alias gssh='SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) ssh -o IdentitiesOnly=no'
|
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 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'
|
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
|
fi
|
||||||
|
|
||||||
if __has_command cryptopassphrase; then
|
if __has_command cryptopassphrase; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue