shrc revision 1.7
11.7Schristos#       $NetBSD: shrc,v 1.7 2010/12/27 03:38:52 christos Exp $
21.6Shubertf#
31.6Shubertf# System-wide .shrc file for sh(1).
41.6Shubertf
51.1Spavelll(){ ls -l ${1+"$@"}; }
61.1Spavel
71.1Spavelcase "$-" in *i*)
81.5Sad	if /bin/test -z "${HOST}"; then
91.7Schristos		HOST="$(hostname)"
101.5Sad	fi
111.1Spavel	PS1="${HOST%%.*}$PS1"
121.1Spavel	set -o emacs
131.4Sapb	# This file is used by shells that might not support
141.4Sapb	# set -o tabcomplete, so check before trying to use it.
151.4Sapb	( set -o tabcomplete 2>/dev/null ) && set -o tabcomplete
161.1Spavel	;;
171.2Stacaesac
18