Added example rc file

master
Thomas Hintz 14 years ago
parent 4f5da89ea7
commit a262cc5f41

@ -0,0 +1,15 @@
(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$ "))))
Loading…
Cancel
Save