My .sbclrc file

I'm mostly writing this as a note to myself in case, but in case someone else cares about it, this is what I include on my .sbclrc file. It starts with the usual quicklisp boilerplate. Then I restrict the compiler policy so that it never goes under safety 1. Regardless of what the code I'm compiling says. I also have a snippet so that if I invoke SBCL from the shell with the --line-edit flag it starts under the line-edit editor. Which among other things supports history! I don't enable it by default because we don't want to start linedit when running under sly

;;; The following lines added by ql:add-to-init-file:
#-quicklisp
(let ((quicklisp-init (merge-pathnames "quicklisp/setup.lisp"
                                       (user-homedir-pathname))))
  (when (probe-file quicklisp-init)
    (load quicklisp-init)))

(sb-ext:restrict-compiler-policy 'safety 1)
(setf sb-ext:*disassemble-annotate* t)

;;;; Nicer command line (h/t Juan Bello-Rivas)
(when (member "--linedit" sb-ext:*posix-argv* :test 'equal)
  (when (interactive-stream-p *terminal-io*)
    (require :linedit)
    (require :terminfo)
    (funcall (intern "INSTALL-REPL" :linedit) :wrap-current t :eof-quits t)))