Disk : Make functions an alias to fix scripts that rely on du/df.

This commit is contained in:
Dmitry Voronin 2024-01-20 12:36:43 +03:00
parent b5ccc453c9
commit a80f40882b
2 changed files with 2 additions and 13 deletions

View file

@ -1,11 +1,7 @@
# Show only physical drives info.
function df() {
/usr/bin/df --si | sed -e '1p' -e "/^\/dev\//!d"
}
alias df="/usr/bin/df --si | sed -e '1p' -e '/^\/dev\//!d'"
# Show combined size in SI.
# Current dir by default.
# Usage: du [DIRS]
function du() {
/usr/bin/du -sh --si -- "${@}"
}
alias du="/usr/bin/du -sh --si"

View file

@ -104,13 +104,6 @@ Command|Description
`dconf_load`|Load Gnome settings.
`dconf_save [FILE]`|Dump Gnome settings into the file. Default name is `gnome.dconf`. Do this before changing settings and after, an then run `diff` to find out what to add to the main `gnome.dconf`.
## Disk.
Command|Description
---|---
`df`|Show only physical drives info.
`du [DIRS]`|Show combined size in SI. Current dir by default.
## Docker.
Command|Description