Created
May 28, 2011 02:26
-
-
Save ThomasHintz/996527 to your computer and use it in GitHub Desktop.
Hintz Chicken Scheme Shell Config File
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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