summaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2018-01-01 19:41:07 +0100
committerPatrick Simianer <p@simianer.de>2018-01-01 19:41:07 +0100
commit8a37444f56a04d60d7afc78f33dde5daf0979ce7 (patch)
tree1232433d451adcfae04246e2b0f1af36c1848e0f /zsh
parentea6826594accd4006b82d9e6e95b329101afb257 (diff)
zsh: curl timeout
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.zshrc2
1 files changed, 1 insertions, 1 deletions
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