dotfiles/.config/rash/rashrc.rkt

17 lines
377 B
Racket
Raw Normal View History

2023-02-12 11:09:41 +01:00
#lang rash
(require
racket/port
rash/private/rashrc-lib
readline/pread)
2023-04-07 15:38:29 +02:00
(provide nv)
2023-02-12 11:09:41 +01:00
(current-prompt-function
(λ (#:last-return-value retval)
(unless (void? retval)
(display ((current-rash-top-level-print-formatter) retval)))
(readline-prompt #{prompt show (if (exn:fail? retval) 1 0) insert |> port->bytes})))
2023-04-07 15:38:29 +02:00
(define-simple-pipeline-alias nv nvim)