zshrc: Leave all limits alone
authorFrank Terbeck <ft@grml.org>
Sun, 27 Sep 2015 08:45:35 +0000 (10:45 +0200)
committerFrank Terbeck <ft@grml.org>
Sun, 27 Sep 2015 09:00:28 +0000 (11:00 +0200)
Except for when we're running off of a live medium. In that case still
disable core-dumps. Other than that, it's up to the user to change their
limit settings from the defaults the system provides.

etc/zsh/zshrc

index 6a7a1a6..ab43aef 100644 (file)
@@ -2703,11 +2703,10 @@ __EOF0__
     fi
 fi
 
-# Use hard limits, except for a smaller stack and no core dumps
-unlimit
-is425 && limit stack 8192
-isgrmlcd && limit core 0 # important for a live-cd-system
-limit -s
+if isgrmlcd; then
+    # No core dumps: important for a live-cd-system
+    limit -s core 0
+fi
 
 # grmlstuff
 grmlstuff() {