commit 8801c4e3d46c26fa09cd70a97e52781ca67092eb (patch)
parent 5617e40b6295debe68c491a75d094721254e62b4
Author: Alex Karle <alex@alexkarle.com>
Date: Sat, 19 Nov 2022 16:04:46 -0500
csi: Add config for CHICKEN interpreter (csi)
I end up writing these few lines on most machines to get a more
friendly REPL in the shell.
Diffstat:
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/.csirc b/.csirc
@@ -0,0 +1,8 @@
+(import (chicken process-context))
+
+;; emacs sets TERM=dumb
+(if (not (equal? (get-environment-variable "TERM") "dumb"))
+ (begin
+ (require-library chicken-doc)
+ (import linenoise)
+ (current-input-port (make-linenoise-port))))
diff --git a/Makefile b/Makefile
@@ -1,6 +1,6 @@
# Makefile -- to compile and install dotfiles
ALL = .cwmrc .exrc .gitconfig .mbsyncrc .shrc .tmux.conf .xsession \
- .mailcap .muttrc .config/nvim .mblaze
+ .mailcap .muttrc .config/nvim .mblaze .csirc
# CURDIR is gmake, .CURDIR is bmake. One will exist!
DOTS = $(CURDIR)$(.CURDIR)