mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 23:08:00 +00:00
Add spacing to increase readability
This commit is contained in:
parent
00394b6069
commit
7e60f13d7d
@ -6,6 +6,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
local root="$(git rev-parse --show-toplevel 2> /dev/null)"
|
local root="$(git rev-parse --show-toplevel 2> /dev/null)"
|
||||||
|
|
||||||
if [[ -n "$root" ]]; then
|
if [[ -n "$root" ]]; then
|
||||||
print "$root"
|
print "$root"
|
||||||
return 0
|
return 0
|
||||||
|
@ -8,11 +8,13 @@
|
|||||||
|
|
||||||
function duh {
|
function duh {
|
||||||
(( $# == 0 )) && set -- *
|
(( $# == 0 )) && set -- *
|
||||||
|
|
||||||
if grep -q -i 'GNU' < <(du --version 2>&1); then
|
if grep -q -i 'GNU' < <(du --version 2>&1); then
|
||||||
du -khsc "$@" | sort -h -r
|
du -khsc "$@" | sort -h -r
|
||||||
else
|
else
|
||||||
local line size name
|
local line size name
|
||||||
local -a record
|
local -a record
|
||||||
|
|
||||||
while IFS=$'\n' read line; do
|
while IFS=$'\n' read line; do
|
||||||
record=(${(z)line})
|
record=(${(z)line})
|
||||||
size="$(($record[1] / 1024.0))"
|
size="$(($record[1] / 1024.0))"
|
||||||
|
Loading…
Reference in New Issue
Block a user