X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fskel%2F.zshrc;h=8e1b02505110aff152f35df419388be07d3ea620;hb=fe25fa0be72344bacd156cf0da78784d3aadcf4a;hp=17bae725013c7178d5cd54d5b9b723a85d3c9b6d;hpb=73a6cb726324d0be16df7a2b070d9a4bb3127ef1;p=grml-etc-core.git diff --git a/etc/skel/.zshrc b/etc/skel/.zshrc index 17bae72..8e1b025 100644 --- a/etc/skel/.zshrc +++ b/etc/skel/.zshrc @@ -245,6 +245,24 @@ fi # fi #} +## Memory overview +#memusage() { +# ps aux | awk '{if (NR > 1) print $5; +# if (NR > 2) print "+"} +# END { print "p" }' | dc +#} + +## print hex value of a number +#hex() { +# emulate -L zsh +# if [[ -n "$1" ]]; then +# printf "%x\n" $1 +# else +# print 'Usage: hex ' +# return 1 +# fi +#} + ## log out? set timeout in seconds... ## ...and do not log out in some specific terminals: #if [[ "${TERM}" == ([Exa]term*|rxvt|dtterm|screen*) ]] ; then