xref: /netbsd/etc/shrc (revision 6728d56f)
1*6728d56fSchristos#       $NetBSD: shrc,v 1.7 2010/12/27 03:38:52 christos Exp $
27c6ec9aeShubertf#
37c6ec9aeShubertf# System-wide .shrc file for sh(1).
47c6ec9aeShubertf
5d8b49bb7Spavelll(){ ls -l ${1+"$@"}; }
6d8b49bb7Spavel
7d8b49bb7Spavelcase "$-" in *i*)
81fafc795Sad	if /bin/test -z "${HOST}"; then
9*6728d56fSchristos		HOST="$(hostname)"
101fafc795Sad	fi
11d8b49bb7Spavel	PS1="${HOST%%.*}$PS1"
12d8b49bb7Spavel	set -o emacs
13dc5994b4Sapb	# This file is used by shells that might not support
14dc5994b4Sapb	# set -o tabcomplete, so check before trying to use it.
15dc5994b4Sapb	( set -o tabcomplete 2>/dev/null ) && set -o tabcomplete
16d8b49bb7Spavel	;;
17d8b49bb7Spavelesac
18