about summary refs log tree commit diff stats
path: root/profile/gauche.sh
blob: 758d59fcfaed454da5da33478784e77f40bf736f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# gauche scheme environment variables
# see also ~/.gaucherc

execp gauche || return

# Warn if ‘#<undef>’ is used in the test expression of branch.  In boolean
# context, ‘#<undef>’ counts true.  It is also often the case that a procedure
# returns ‘#<undef>’ 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