zshrc: Move memusage to skel/.zshrc
authorFrank Terbeck <ft@bewatermyfriend.org>
Tue, 29 Nov 2011 13:20:59 +0000 (14:20 +0100)
committerMichael Prokop <mika@grml.org>
Tue, 6 Dec 2011 13:50:46 +0000 (14:50 +0100)
Signed-off-by: Frank Terbeck <ft@bewatermyfriend.org>
doc/grmlzshrc.t2t
etc/skel/.zshrc
etc/zsh/zshrc

index 594ca05..fa61103 100644 (file)
@@ -668,9 +668,6 @@ current working directory to it.
 Diffs the two arguments recursively and writes the
 output (unified format) to a timestamped file.
 
-: **memusage()**
-Prints the summarized memory usage in bytes.
-
 : **mggogle()**
 Searches Google Groups for a USENET message-ID.
 
index 17bae72..3b861b8 100644 (file)
@@ -245,6 +245,13 @@ fi
 #    fi
 #}
 
+## Memory overview
+#memusage() {
+#    ps aux | awk '{if (NR > 1) print $5;
+#                   if (NR > 2) print "+"}
+#                   END { print "p" }' | dc
+#}
+
 ## log out? set timeout in seconds...
 ## ...and do not log out in some specific terminals:
 #if [[ "${TERM}" == ([Exa]term*|rxvt|dtterm|screen*) ]] ; then
index 7bfdf4d..344528c 100644 (file)
@@ -2765,11 +2765,6 @@ inplaceMkDirs() {
 #k# mkdir -p <dir> from string under cursor or marked area
 zle -N inplaceMkDirs && bindkey '^XM' inplaceMkDirs
 
-#f5# Memory overview
-memusage() {
-    ps aux | awk '{if (NR > 1) print $5; if (NR > 2) print "+"} END { print "p" }' | dc
-}
-
 # Function Usage: doc packagename
 #f5# \kbd{cd} to /usr/share/doc/\textit{package}
 doc() {