-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6740d88
commit 218081b
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
# | ||
# Displays human readable disk usage. | ||
# Displays the grand total disk usage using human readable units. | ||
# | ||
# Authors: | ||
# Suraj N. Kurapati <[email protected]> | ||
# Sorin Ionescu <[email protected]> | ||
# | ||
|
||
function duh { | ||
function dut { | ||
(( $# == 0 )) && set -- * | ||
|
||
if grep -q -i 'GNU' < <(du --version 2>&1); then | ||
|
@@ -23,7 +23,7 @@ function duh { | |
done < <(du -kcs "$@") | sort -n -r | ||
fi | ||
} | ||
compdef _du duh | ||
compdef _du dut | ||
|
||
duh "$@" | ||
dut "$@" | ||
|