Commits

Anonymous committed a5673f4

refactored duc alias

Comments (0)

Files changed (1)

 alias fp="nohup /Applications/Firefox.app/Contents/MacOS/firefox -ProfileManager &"
 
 #show directory usage for all directories in the current dir
-alias duc='du -sh `ls -d *`'
+currentDirectoryUsage() {
+    ls -d * | while read D; 
+        do du -sh "$D"
+    done;
+}
+alias duc=currentDirectoryUsage
 
 # forward requests from port 80 to 8080
 alias ipfw80to8080='sudo ipfw add 100 fwd 127.0.0.1,8080 tcp from any to any 80 in'