# echo .shrc

#
# Add /opt/schily/bin to PATH
#
case "$PATH" in
*/opt/schily/bin*)	;;
*)			PATH="$PATH":/opt/schily/bin
esac

#
# Add $HOME/bin to PATH
#
case "$PATH" in
*$HOME/bin*)		;;
*)			PATH=~/bin:"$PATH"
esac
export PATH

PAGER='p -b'
export PAGER
EDITOR=ved-e
export EDITOR

SAVEHISTORY=on

TF='%6:E real %6U user %6S sys %P%% cpu %I+%Oio %Fpf+%Ww'
TIMEFORMAT=$TF

#
# Must be last as FreeBSD ash does not like this
#
case "${.sh.version}" in

*pbosh*)
	set -o globalaliases	# comment out if pbosh was compiled without
	set -o localaliases	# comment out if pbosh was compiled without
	;;
*bosh*|*version*)
	set -o globalaliases	# Enable persistent global aliases in ~/.globals
	set -o localaliases	# Enable persistent local aliases in .locals

	set -o fdpipe		# permit "cmd1 2| more" to pipe e.g. stderr
	set -o hashcmds		# enable hash commands for alias management
	set -o hostprompt	# Set PS1 to: "<hostname> <username>> "

	set -o time	# Must be last, or you would get timing for .shrc cmds
	;;
*)	;;
esac 2> /dev/null	# Redirect FreeBSD ash error message
