From 1854d46e71fc24737692a4c3b75e060f85ffd642 Mon Sep 17 00:00:00 2001
From: Hau Nguyen <hauvipapro@gmail.com>
Date: Fri, 3 Jan 2025 15:23:38 +0700
Subject: [PATCH] config(zsh): add QT_BEARER_POLL_TIMEOUT=-1 to fix wifi issue

---
 data/ghostty/config   | 1 +
 data/zsh/bottom-zshrc | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/data/ghostty/config b/data/ghostty/config
index bf9d244..80138c4 100644
--- a/data/ghostty/config
+++ b/data/ghostty/config
@@ -25,6 +25,7 @@ clipboard-trim-trailing-spaces = true
 clipboard-paste-protection = true
 
 quit-after-last-window-closed = true
+
 macos-option-as-alt = true
 macos-auto-secure-input = true
 macos-secure-input-indication = true
diff --git a/data/zsh/bottom-zshrc b/data/zsh/bottom-zshrc
index ed03c74..c8597c2 100644
--- a/data/zsh/bottom-zshrc
+++ b/data/zsh/bottom-zshrc
@@ -232,4 +232,7 @@ if command -v starship &>/dev/null; then
     eval "$(starship init zsh)"
 fi
 
+# https://ryuuta.net/blog/diagnosing-an-unsual-wifi-issue/
+export QT_BEARER_POLL_TIMEOUT=-1
+
 export PATH