Skip to content

Instantly share code, notes, and snippets.

@ThomasHintz
Created May 28, 2011 02:26
Show Gist options
  • Save ThomasHintz/996527 to your computer and use it in GitHub Desktop.
Save ThomasHintz/996527 to your computer and use it in GitHub Desktop.
Hintz Chicken Scheme Shell Config File
(require-extension ansi-escape-sequences srfi-19)
(repl-prompt
(lambda ()
(let ((is-root? (lambda (user) (string=? user "root")))
(user (car (user-information (current-user-id)))))
(string-append "("
(set-text (if (is-root? user) '(fg-red) '(fg-green))
(string-append user "@" (or (get-host-name) "")))
")-("
(current-directory)
")-("
(date->string (current-date) "~T")
")"
"\n$ "))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment