From 8a37444f56a04d60d7afc78f33dde5daf0979ce7 Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Mon, 1 Jan 2018 19:41:07 +0100 Subject: zsh: curl timeout --- zsh/.zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zsh') diff --git a/zsh/.zshrc b/zsh/.zshrc index b127914..7592a2e 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -92,7 +92,7 @@ stty -ixon # enable mapping of C-s in vim.. autoload -U colors && colors in_google_cloud () { - curl metadata.google.internal -i &>/dev/null + curl metadata.google.internal -i --connect-timeout 0.25 &>/dev/null if [[ $? -eq 0 ]]; then echo "yes" else -- cgit v1.2.3