Is There Any Method For Checking If REPL Is Running As a Login Shell?

This page summarizes the projects mentioned and recommended in the original post on /r/Common_Lisp

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • dotfiles

  • I am currently moving over to a repl, either cl-repl or sbcl with some interactive extensions, and am hitting one issue. I do not use a display manager to start a graphical environment, but instead use my .login as a script to start either my graphical environment or my multiplexor. While porting this to common-lisp would be trivial, the one issue is that it would run every time I spawn a REPL. As far as I know there are no versions of a .login file for either cl-repl or sbcl. Does anyone know if there is a way to check if a REPL is running as a login shell or of an extension to implement this functionality? If not it is not the end of the world as I can just write an explicit function and manually call it, but it would be nice to have.

  • cheat.sh

    the only cheat sheet you need

  • (defun cheat (&optional (target-program nil)) "Show quick tips and usage information for target-program." (if (not target-program) (uiop:run-program (list "curl" "-fLm" "7" "https://cheat.sh/") :output *standard-output*) (uiop:run-program (list "curl" "-fLm" "7" (concatenate 'string "https://cheat.sh/" target-program)) :output *standard-output*)))

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • cl-repl

    A full-featured repl implementation designed to work with Roswell

  • In order to get syntax highlighting as well as tab completion I have been using cl-repl. I have been having this issue, as well as another issue with cl-repl inheriting some stuff, but do not seem to have the same issue in sbcl either. Could it be a bug in cl-repl? Is there a solid alternative for sbcl?

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts