From 8801c4e3d46c26fa09cd70a97e52781ca67092eb Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Sat, 19 Nov 2022 16:04:46 -0500 Subject: [PATCH] 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. --- .csirc | 8 ++++++++ Makefile | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .csirc diff --git a/.csirc b/.csirc new file mode 100644 index 0000000..1cfd6df --- /dev/null +++ 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 index 30f49d4..3f37364 100644 --- 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) -- libgit2 1.1.1