Disk : Make functions an alias to fix scripts that rely on du/df.
This commit is contained in:
parent
b5ccc453c9
commit
a80f40882b
|
@ -1,11 +1,7 @@
|
||||||
# Show only physical drives info.
|
# Show only physical drives info.
|
||||||
function df() {
|
alias df="/usr/bin/df --si | sed -e '1p' -e '/^\/dev\//!d'"
|
||||||
/usr/bin/df --si | sed -e '1p' -e "/^\/dev\//!d"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Show combined size in SI.
|
# Show combined size in SI.
|
||||||
# Current dir by default.
|
# Current dir by default.
|
||||||
# Usage: du [DIRS]
|
# Usage: du [DIRS]
|
||||||
function du() {
|
alias du="/usr/bin/du -sh --si"
|
||||||
/usr/bin/du -sh --si -- "${@}"
|
|
||||||
}
|
|
||||||
|
|
|
@ -104,13 +104,6 @@ Command|Description
|
||||||
`dconf_load`|Load Gnome settings.
|
`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`.
|
`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.
|
## Docker.
|
||||||
|
|
||||||
Command|Description
|
Command|Description
|
||||||
|
|
Reference in a new issue