This commit is contained in:
Christian Nieves
2022-07-14 18:33:13 +00:00
parent b39610bd69
commit 14c4347c9c
8 changed files with 33 additions and 22 deletions

View File

@ -119,3 +119,4 @@ alias jadep=/google/data/ro/teams/jade/jadep
alias replace_string=/google/src/head/depot/google3/devtools/scripts/replace_string
alias safergcp=/google/bin/releases/safer-gcp/tools/safergcp
alias add_deps_to_usages='/google/src/head/depot/google3/apps/framework/tools/add_deps_to_usages.sh'
alias plxutil='/google/data/ro/teams/plx/plxutil'

View File

@ -248,3 +248,19 @@ source ~/zsh-async/async.zsh
export FZF_DEFAULT_OPTS="--preview 'echo {}' --preview-window down:3:wrap --bind ?:toggle-preview"
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
fixup_ssh_auth_sock() {
if [[ -n ${SSH_AUTH_SOCK} && ! -e ${SSH_AUTH_SOCK} ]]
then
local new_sock=$(echo /tmp/ssh-*/agent.*(=UNom[1]))
if [[ -n ${new_sock} ]]
then
export SSH_AUTH_SOCK=${new_sock}
fi
fi
}
if [[ -n ${SSH_AUTH_SOCK} ]]
then
autoload -U add-zsh-hook
add-zsh-hook preexec fixup_ssh_auth_sock
fi

View File

@ -13,7 +13,7 @@ autoload -Uz add-zsh-hook
add-zsh-hook chpwd g3path::hook
g3path::zle::accept-line () {
if [[ -n $GOOGLE3_ROOT && ! $BUFFER =~ \\s*(blaze|g4|p4|g4d|add_dep|buildozer|build_cleaner|debug_android_lint|rabbit|hb) ]]; then
if [[ -n $GOOGLE3_ROOT && ! $BUFFER =~ \\s*(blaze|g4|p4|g4d|add_dep|buildozer|build_cleaner|debug_android_lint|rabbit|hb|gqui) ]]; then
BUFFER=${BUFFER// \/\// $GOOGLE3_ROOT\/}
fi
zle .accept-line