gash: Use a simple prompt on Mes.
* gash/gash.scm [mes] (prompt): Use plain ol' "$".
This commit is contained in:
parent
b741e2a3e7
commit
a1794de9f6
|
@ -142,6 +142,9 @@ There is NO WARRANTY, to the extent permitted by law.
|
|||
(else (exit (run-repl (current-input-port) parse?))))))))
|
||||
(thunk)))
|
||||
|
||||
(cond-expand
|
||||
(mes (define (prompt) "$ "))
|
||||
(else
|
||||
(define prompt
|
||||
(let* ((l (string #\001))
|
||||
(r (string #\002))
|
||||
|
@ -156,7 +159,8 @@ There is NO WARRANTY, to the extent permitted by law.
|
|||
cwd)))
|
||||
(string-append
|
||||
l e "[01;32m" r user "@" host l e "[00m" r ":"
|
||||
l e "[01;34m" r cwd l e "[00m" r (if (zero? (getuid)) "# " "$ "))))))
|
||||
l e "[01;34m" r cwd l e "[00m" r
|
||||
(if (zero? (getuid)) "# " "$ "))))))))
|
||||
|
||||
(define (string-prefix s1 s2)
|
||||
(substring/read-only s1 0 (string-prefix-length s1 s2)))
|
||||
|
|
Loading…
Reference in New Issue