summaryrefslogtreecommitdiff
path: root/.config/zsh/zprofile
diff options
context:
space:
mode:
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
}