X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/85bd38266ac715a26fac6f8ac8a3f8fcdac36263..6a8c807005db0dbb885cdc1f91c62897fff361e2:/dot/profile diff --git a/dot/profile b/dot/profile index 3962b2b..fd50a46 100644 --- a/dot/profile +++ b/dot/profile @@ -109,6 +109,12 @@ done ###-------------------------------------------------------------------------- ### Some other preliminaries. +## Set a per-process memory limit. It's much less common for a process to +## need a lot of memory for a legitimate reason than for it to be a memory +## leak or some other bug that's going to cause swap death for no good +## reason. +ulimit -Sv $(mdw-conf memory-limit 4194304) + ## Establish a temporary directory. case ${TMPDIR+t} in t) ;; @@ -196,6 +202,9 @@ if __mdw_programp global; then export LESSGLOBALTAGS fi +## Get Debian `groff' to produce control sequences rather than overstriking. +GROFF_SGR=t; export GROFF_SGR + ###-------------------------------------------------------------------------- ### Miscellaneous things.