minix/etc/ast/.profile

34 lines
605 B
Plaintext
Raw Normal View History

2005-04-22 15:56:32 +02:00
# Login shell profile.
umask 022
# Favourite editor and pager, search path for binaries, etc.
export EDITOR=vi
export PAGER=less
# Let cd display the current directory on the status line.
if [ -t 0 -a -f /usr/bin/tget ] && tget -flag hs
then
case $- in *i*)
hostname=$(expr $(uname -n) : '\([^.]*\)')
eval "cd()
{
chdir \"\$@\" &&
echo -n '$(tget -str ts \
"$USER@$hostname:'\"\`pwd\`\"'" \
-str fs)'
}"
unset hostname
cd .
;;
esac
fi
2005-04-22 15:56:32 +02:00
# Check terminal type.
case $TERM in
dialup|unknown|network)
echo -n "Terminal type? ($TERM) "; read term
TERM="${term:-$TERM}"
unset term
esac