Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This allows a cute startup file: ``` ;; Get our hostname (set! hostname (fn* () (trim (slurp "/etc/hostname")))) (set! trim (fn* (str) "Trim all leading/trailing whitespace from the given string." (let* (res (match "^[ \t\r\n]*([^ \t\r\n]+)[ \t\r\n]*" str)) (if (list? res) (car (cdr res)) str)))) ;; Show ourselves (print "This is ~/.yalrc on %s - %s %s" (hostname) (os) (arch) ) ```
- Loading branch information