diff options
-rwxr-xr-x | bin/vdf | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -135,7 +135,7 @@ sub show_df_png { return; } -getopts('Aa:cfg', \%opts); +getopts('Aa:cfgi:', \%opts); $alpha = $opts{'a'} // 0; open(my $mounts_fh, '<', '/proc/mounts'); @@ -160,6 +160,10 @@ close($mounts_fh); if (not $opts{'A'}) { @mounts = grep { $_->[0] !~ qr{ ^ ( (root|tmp)fs | none ) $ }x } @mounts; } +if ($opts{'i'}) { + my @ignored = split(qr{,}, $opts{'i'}); + @mounts = grep { not ($_->[1] ~~ [@ignored]) } @mounts; +} if ($opts{'c'}) { show_df_console(); |