From 48186d3a9d4139bfcd9bf743cb56cb77f287f464 Mon Sep 17 00:00:00 2001 From: Frank Terbeck Date: Tue, 29 Nov 2011 14:20:59 +0100 Subject: [PATCH] zshrc: Move memusage to skel/.zshrc Signed-off-by: Frank Terbeck --- doc/grmlzshrc.t2t | 3 --- etc/skel/.zshrc | 7 +++++++ etc/zsh/zshrc | 5 ----- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/doc/grmlzshrc.t2t b/doc/grmlzshrc.t2t index 594ca05..fa61103 100644 --- a/doc/grmlzshrc.t2t +++ b/doc/grmlzshrc.t2t @@ -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. diff --git a/etc/skel/.zshrc b/etc/skel/.zshrc index 17bae72..3b861b8 100644 --- a/etc/skel/.zshrc +++ b/etc/skel/.zshrc @@ -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 diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 7bfdf4d..344528c 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -2765,11 +2765,6 @@ inplaceMkDirs() { #k# mkdir -p 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() { -- 2.1.4