about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-07-20 20:49:48 +0200
committerhut <hut@lavabit.com>2009-07-20 21:11:16 +0200
commit963cce199fa56cd65243c816e426969fdcec787b (patch)
tree23b704568988f17b3c68ebef9071262f2eaf57d5
parent14376a894da58fb365c56ecfc0e2c5d347aa3f70 (diff)
downloadranger-963cce199fa56cd65243c816e426969fdcec787b.tar.gz
[du] displays disk usage
-rw-r--r--code/keys.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/code/keys.rb b/code/keys.rb
index d7d2545f..ac0bce39 100644
--- a/code/keys.rb
+++ b/code/keys.rb
@@ -316,6 +316,11 @@ module Fm
 				end
 			end
 
+		when 'du'
+			externally do
+				system "du --max-depth=1 -h | less"
+			end
+
 		when 'tar'
 			externally do
 				system('tar', 'cvvf', 'pack.tar', *selection.map{|x| x.basename})