]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - shell/setup.sh
shell: aliases: add lsblk alias with --merge
[config/dotfiles.git] / shell / setup.sh
index 9f622f71494031bd86fb8c2de4a9f8a6a1ce8a76..084193e467a0f6757f0183eed056136c2bb6c768 100755 (executable)
@@ -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