Browse Source

Add spacing to increase readability

master
Sorin Ionescu 13 years ago
parent
commit
7e60f13d7d
  1. 1
      modules/git/functions/git-root
  2. 2
      modules/utility/functions/duh

1
modules/git/functions/git-root

@ -6,6 +6,7 @@ @@ -6,6 +6,7 @@
#
local root="$(git rev-parse --show-toplevel 2> /dev/null)"
if [[ -n "$root" ]]; then
print "$root"
return 0

2
modules/utility/functions/duh

@ -8,11 +8,13 @@ @@ -8,11 +8,13 @@
function duh {
(( $# == 0 )) && set -- *
if grep -q -i 'GNU' < <(du --version 2>&1); then
du -khsc "$@" | sort -h -r
else
local line size name
local -a record
while IFS=$'\n' read line; do
record=(${(z)line})
size="$(($record[1] / 1024.0))"

Loading…
Cancel
Save