diff options
author | hut <hut@lavabit.com> | 2009-07-20 20:49:48 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2009-07-20 21:11:16 +0200 |
commit | 963cce199fa56cd65243c816e426969fdcec787b (patch) | |
tree | 23b704568988f17b3c68ebef9071262f2eaf57d5 /code | |
parent | 14376a894da58fb365c56ecfc0e2c5d347aa3f70 (diff) | |
download | ranger-963cce199fa56cd65243c816e426969fdcec787b.tar.gz |
[du] displays disk usage
Diffstat (limited to 'code')
-rw-r--r-- | code/keys.rb | 5 |
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}) |