From 31adcaf66c83b802358344b77896c10fefa4e791 Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Sun, 19 Jan 2020 01:06:22 +0900 Subject: [PATCH] Fix for WSL --- profile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/profile b/profile index 8cb6118..7605aa8 100755 --- a/profile +++ b/profile @@ -24,7 +24,9 @@ export RUBYLIB="$RUBYLIB:$HOME/.local/lib/gems/lib" # in my environment powerdown does not work -test -z "$DISPLAY" && test -z "$SSH_CONNECTION" && \ +test -z "$DISPLAY" && \ + test -z "$SSH_CONNECTION" && \ + ! (uname -r | grep Microsoft >/dev/null) &&\ type setterm >/dev/null 2>&1 && \ setterm -blank 30 -powersave on # -powerdown 10