From 1d562af8927d932bc3329de3b06c94a966047238 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 30 Jan 2023 17:33:06 -0600 Subject: Add a bunch of stuff Forgot I had to `git add -f' these! --- profile/gauche.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 profile/gauche.sh (limited to 'profile/gauche.sh') diff --git a/profile/gauche.sh b/profile/gauche.sh new file mode 100644 index 0000000..ca5d35b --- /dev/null +++ b/profile/gauche.sh @@ -0,0 +1,26 @@ +# gauche scheme environment variables +# see also ~/.gaucherc + +# Warn if ‘#’ is used in the test expression of branch. In boolean +# context, ‘#’ counts true. It is also often the case that a procedure +# returns ‘#’ when the return value doesn’t matter, and you shouldn’t +# rely on the value that is supposed not to matter–the procedure may change the +# return value in future (which should be ok, since the value shouldn’t have +# mattered), which can cause unintentional and hard-to-track bugs. *Note +# Undefined values::, for the details. We strongly recommend users to turn on +# this warning. In future, we plan to make this default. +GAUCHE_CHECK_UNDEFINED_TEST=1 +export GAUCHE_CHECK_UNDEFINED_TEST + +# This is used by ‘gauche.interactive’ module to enable line-editor on REPL +# prompt. *Note Interactive development::, for the details. +GAUCHE_READ_EDIT=1 +export GAUCHE_READ_EDIT + +# If Gauche is invoked with ‘GAUCHE_READ_EDIT’ enabled (see below), the REPL +# history is kept in ‘~/.gosh_history’ by default. This environment variable +# overrides the history file. To prohibit saving history, set an empty string +# to this variable. If the process is suid/sgid-ed, history won’t be saved. +GAUCHE_HISTORY_FILE="${XDG_DATA_HOME:-$LOCAL_PREFIX/share}/gauche/gosh_history" +mkdir -p "${GAUCHE_HISTORY_FILE%/*}" +export GAUCHE_HISTORY_FILE -- cgit 1.4.1-21-gabe81