From 963cce199fa56cd65243c816e426969fdcec787b Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 20 Jul 2009 20:49:48 +0200 Subject: [du] displays disk usage --- code/keys.rb | 5 +++++ 1 file changed, 5 insertions(+) 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}) -- cgit 1.4.1-2-gfad0