-### -*-sh-*-
+### -*-bash-*-
###
### Bash startup things
HOME=`(set -P; cd $HOME; pwd)`
cd $HOME
-## Establish a temporary directory.
-[ "$TMPDIR" ] || eval `tmpdir -b`
-export TMP=$TMPDIR
-
## CDE's session structure is demented and doesn't leave us with a proper
## logout hook, so synthesize one here.
[ -n "$DT" ] && trap "source $HOME/.bash_logout" EXIT
###--------------------------------------------------------------------------
### Various other kinds of configuration.
+## Establish a temporary directory.
+[ "$TMPDIR" ] || eval `tmpdir -b`
+export TMP=$TMPDIR
+
## Sensible umask if users have their own groups.
umask 002
: ${LANG=${LC_CTYPE-${LC_ALL-`mdw-conf console-ctype`}}}
case "$TERM,`tty`" in
linux,/dev/tty*)
- if vt-is-UTF8 >/dev/null 2>&1; then
+ if { vt-is-UTF8 ||
+ kbd_mode | grep UTF-8; } >/dev/null 2>&1; then
ctype=.utf8
else
ctype=