zsh: improve keychain handling, add asdf
This commit is contained in:
parent
b5e3a21cb8
commit
d7c6ba8219
@ -16,7 +16,10 @@ case $TERM in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
if [ -e /usr/bin/keychain ]; then
|
||||||
eval $(/usr/bin/keychain --eval --agents ssh -Q --quiet id_ed25519)
|
eval $(/usr/bin/keychain --eval --agents ssh -Q --quiet id_ed25519)
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -n "$SSH_AUTH_SOCK" ]; then
|
if [ -n "$SSH_AUTH_SOCK" ]; then
|
||||||
ln -sf $SSH_AUTH_SOCK ~/.ssh/ssh_auth_sock
|
ln -sf $SSH_AUTH_SOCK ~/.ssh/ssh_auth_sock
|
||||||
export SSH_AUTH_SOCK=$HOME/.ssh/ssh_auth_sock
|
export SSH_AUTH_SOCK=$HOME/.ssh/ssh_auth_sock
|
||||||
@ -25,6 +28,12 @@ fi
|
|||||||
# Highlight the current autocomplete option
|
# Highlight the current autocomplete option
|
||||||
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
|
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
|
||||||
|
|
||||||
|
# asdf setup
|
||||||
|
if [ -e $HOME/.asdf/asdf.sh ]; then
|
||||||
|
. "$HOME/.asdf/asdf.sh"
|
||||||
|
fpath=(${ASDF_DIR}/completions $fpath)
|
||||||
|
fi
|
||||||
|
|
||||||
# Better SSH/Rsync/SCP Autocomplete
|
# Better SSH/Rsync/SCP Autocomplete
|
||||||
#zstyle ':completion:*:(scp|rsync):*' tag-order ' hosts:-ipaddr:ip\ address hosts:-host:host files'
|
#zstyle ':completion:*:(scp|rsync):*' tag-order ' hosts:-ipaddr:ip\ address hosts:-host:host files'
|
||||||
#zstyle ':completion:*:(ssh|scp|rsync):*:hosts-host' ignored-patterns '*(.|:)*' loopback ip6-loopback localhost ip6-localhost broadcasthost
|
#zstyle ':completion:*:(ssh|scp|rsync):*:hosts-host' ignored-patterns '*(.|:)*' loopback ip6-loopback localhost ip6-localhost broadcasthost
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user