OSDN Git Service

fix color scheme
authorpaperbenni <paperbenni@gmail.com>
Tue, 10 Mar 2020 15:13:22 +0000 (16:13 +0100)
committerpaperbenni <paperbenni@gmail.com>
Tue, 10 Mar 2020 15:13:22 +0000 (16:13 +0100)
rootinstall.sh

index e5c50bd..b3a82a2 100755 (executable)
@@ -69,9 +69,11 @@ fi
 # color scheme for tty
 if ! grep -q '# nord colors' /etc/profile; then
     echo "applying color scheme"
+    
+    echo '# nord colors' >>/etc/profile
+    echo 'if [ "$TERM" = "linux" ]; then' >>/etc/profile
+
     cat <<EOT >>/etc/profile
-# nord colors
-if [ "$TERM" = "linux" ]; then
     echo -en "\e]P0383c4a" #black
     echo -en "\e]P8404552" #darkgrey
     echo -en "\e]P19A4138" #darkred