From c7b5dd616c9030c537f1d5e9f615511468e928cf Mon Sep 17 00:00:00 2001 From: Wryn Wagner Date: Mon, 27 Sep 2021 13:18:13 -0600 Subject: [PATCH] only fail on known hosts --- zsh/helpers.zsh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/zsh/helpers.zsh b/zsh/helpers.zsh index 7780baf..f68c007 100644 --- a/zsh/helpers.zsh +++ b/zsh/helpers.zsh @@ -71,9 +71,8 @@ _CA__GET_REMOTE_TARGET() { echo $CODE_ACTIVATOR__KNOWN_TARGETS | grep -q "$REMOTE_TARGET" && { REMOTE_TARGET="$REMOTE_TARGET$(echo | $_CA__FZF --print-query --prompt "$REMOTE_TARGET" | tail -1)" + [[ $REMOTE_TARGET == $FIRST_SELECTION ]] && return '' } - - [[ $REMOTE_TARGET == $FIRST_SELECTION ]] && return '' echo $REMOTE_TARGET | grep -q '\.git$' || REMOTE_TARGET="$REMOTE_TARGET.git" echo $REMOTE_TARGET