X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=shell%2Fsetup.sh;h=084193e467a0f6757f0183eed056136c2bb6c768;hb=246cb5f430f8846edefc28783cfa4197bd9034c2;hp=e8cff62e78da7cfd79b6fc429779fd9ba12e9bd0;hpb=3e7a01c3a9d7c71a9e4a1981815efe54f7ed282e;p=config%2Fdotfiles.git diff --git a/shell/setup.sh b/shell/setup.sh index e8cff62..084193e 100755 --- a/shell/setup.sh +++ b/shell/setup.sh @@ -127,6 +127,11 @@ else sed_i '/^alias grep=/ s/^/#/' shell/aliases fi +if ! lsblk --merge >/dev/null 2>&1; then + echo 'shell/aliases: removing lsblk --merge' + sed_i 's/lsblk --merge/lsblk/' shell/aliases +fi + generate screenrc .in cat # As screen-256color is not widely supported use it only on machines where the # matching terminfo entry is available. This also requires a terminal emulator @@ -233,6 +238,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.