dotfiles/.config/rash/rashrc.rkt
2023-04-07 15:38:29 +02:00

17 lines
377 B
Racket

#lang rash
(require
racket/port
rash/private/rashrc-lib
readline/pread)
(provide nv)
(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})))
(define-simple-pipeline-alias nv nvim)