2005-04-22 15:56:32 +02:00
|
|
|
# Ash initialization.
|
|
|
|
|
|
|
|
test -z "$EDITOR" && { # Don't repeat in subshells.
|
|
|
|
|
|
|
|
umask 022
|
|
|
|
|
|
|
|
# Favourite editor and pager, search path for binaries, etc.
|
|
|
|
export EDITOR=vi
|
2011-11-10 16:58:46 +01:00
|
|
|
export PAGER=less
|
2010-09-12 19:56:53 +02:00
|
|
|
export PATH=$HOME/bin:/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/pkg/bin:/usr/pkg/sbin:/usr/pkg/X11R6/bin
|
2005-04-22 15:56:32 +02:00
|
|
|
|
|
|
|
} # End of no-repeat.
|
|
|
|
|
|
|
|
# Let cd display the current directory on the status line.
|
2013-01-30 15:36:51 +01:00
|
|
|
if [ -t 0 -a -f /usr/bin/tget ] && tget -flag hs
|
2005-04-22 15:56:32 +02:00
|
|
|
then
|
2013-01-30 15:36:51 +01:00
|
|
|
case $- in *i*)
|
2005-04-22 15:56:32 +02:00
|
|
|
hostname=$(expr $(uname -n) : '\([^.]*\)')
|
|
|
|
eval "cd()
|
|
|
|
{
|
|
|
|
chdir \"\$@\" &&
|
|
|
|
echo -n '$(tget -str ts \
|
|
|
|
"$USER@$hostname:'\"\`pwd\`\"'" \
|
|
|
|
-str fs)'
|
|
|
|
}"
|
|
|
|
unset hostname
|
|
|
|
cd .
|
2013-01-30 15:36:51 +01:00
|
|
|
;;
|
|
|
|
esac
|
2005-04-22 15:56:32 +02:00
|
|
|
fi
|