Skip to content

Instantly share code, notes, and snippets.

@afresh1
Last active May 12, 2016 18:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save afresh1/d7fb08ae3c32b2caca9f to your computer and use it in GitHub Desktop.
Save afresh1/d7fb08ae3c32b2caca9f to your computer and use it in GitHub Desktop.
~/bin/firefox for OpenBSD. Raises the ulimits needed to keep Firefox from crashing regularly. (~/bin is in my path before /usr/local/bin)
#!/bin/sh
ulimit -n $(ulimit -Hn)
ulimit -d $(ulimit -Hd)
exec /usr/local/bin/firefox "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment