X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=blobdiff_plain;f=shell%2Fsetup.sh;h=9f622f71494031bd86fb8c2de4a9f8a6a1ce8a76;hp=e8cff62e78da7cfd79b6fc429779fd9ba12e9bd0;hb=873ae3e69abd451545ec860598dcd0ec21881ca1;hpb=3e7a01c3a9d7c71a9e4a1981815efe54f7ed282e diff --git a/shell/setup.sh b/shell/setup.sh index e8cff62..9f622f7 100755 --- a/shell/setup.sh +++ b/shell/setup.sh @@ -233,6 +233,9 @@ fi # Htop overwrites the comments in its configuration file. generate htoprc .in cat +if installed nproc && test "$(nproc)" -gt 8; then + sed_i 's/LeftCPUs/LeftCPUs2/; s/RightCPUs/RightCPUs2/' htoprc +fi if installed dig; then # dig doesn't support any comments in digrc.