summaryrefslogtreecommitdiff
path: root/.config/zsh/zprofile
diff options
context:
space:
mode:
authorVikas Kushwaha <dev@vikas.rocks>2025-02-22 10:11:38 +0530
committerVikas Kushwaha <dev@vikas.rocks>2025-02-22 10:11:38 +0530
commit3b887240d1d9189be7f4adf75f3e71277b7ca833 (patch)
tree358fd67ad202c410e1730ed811647251543c553a /.config/zsh/zprofile
parent4bba9a51b63863317983faba3988c8a14e722c11 (diff)
after fixing some boot problems
Diffstat (limited to '.config/zsh/zprofile')
-rw-r--r--.config/zsh/zprofile2
1 files changed, 1 insertions, 1 deletions
diff --git a/.config/zsh/zprofile b/.config/zsh/zprofile
index 46c5217..f41c6a2 100644
--- a/.config/zsh/zprofile
+++ b/.config/zsh/zprofile
@@ -9,7 +9,7 @@ on_ac_power="$(cat /sys/class/power_supply/ACAD/online)"
case "$TTY" in
/dev/tty1)
- [ "$on_ac_power" = 1 ] && {
+ command -V optimus-manager >/dev/null && [ "$on_ac_power" = 1 ] {
echo "Waiting for nvidia card to load up..."
until [ -e /dev/dri/card0 ]; do; sleep 0.1; done
}