pest.lisp 297 B

1234567891011
  1. ;; PROMPT_COMMAND='export PS1="$(pest)"'
  2. ;; Regex Scanners
  3. (defvar *home-scan* (ppcre:create-scanner (concatenate 'string "^" (format NIL "~a" (user-homedir-pathname)))))
  4. (defun pwd ()
  5. (ppcre:regex-replace *home-scan* (uiop:getenv "PWD") "~/"))
  6. (defun main ()
  7. (format T "~a ~%λ " (pwd)))