Factor out common settings from /root/.shrc and /etc/skel/.shrc to a
new file /etc/shrc. As proposed on tech-userlevel.
This commit is contained in:
parent
97194de33c
commit
d8b49bb74e
@ -1,4 +1,4 @@
|
||||
# $NetBSD: mi,v 1.176 2006/09/10 15:45:55 plunky Exp $
|
||||
# $NetBSD: mi,v 1.177 2006/09/14 13:01:32 pavel Exp $
|
||||
#
|
||||
# Note: end-user configuration files that are moved to another location
|
||||
# should not be marked "obsolete"; they should just be removed from
|
||||
@ -265,6 +265,7 @@
|
||||
./etc/security.conf etc-sys-etc
|
||||
./etc/services etc-net-etc
|
||||
./etc/shells etc-sys-etc
|
||||
./etc/shrc etc-util-etc
|
||||
./etc/skel/.cshrc etc-sys-etc
|
||||
./etc/skel/.login etc-sys-etc
|
||||
./etc/skel/.logout etc-sys-etc
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.335 2006/08/13 14:11:36 jmmv Exp $
|
||||
# $NetBSD: Makefile,v 1.336 2006/09/14 13:01:31 pavel Exp $
|
||||
# from: @(#)Makefile 8.7 (Berkeley) 5/25/95
|
||||
|
||||
# Environment variables without default values:
|
||||
@ -93,7 +93,7 @@ BIN1+= bootptab changelist csh.cshrc csh.login csh.logout daily \
|
||||
netconfig networks newsyslog.conf nsswitch.conf ntp.conf \
|
||||
passwd.conf phones printcap profile protocols \
|
||||
rbootd.conf rc rc.conf rc.lkm rc.local rc.subr rc.shutdown remote rpc \
|
||||
security security.conf services shells sysctl.conf syslog.conf \
|
||||
security security.conf services shells shrc sysctl.conf syslog.conf \
|
||||
weekly weekly.conf wscons.conf
|
||||
|
||||
# Use machine-specific disktab if it exists, or the MI one otherwise
|
||||
|
@ -1,10 +1,10 @@
|
||||
# $NetBSD: dot.shrc,v 1.6 2001/04/01 01:32:10 toddpw Exp $
|
||||
# $NetBSD: dot.shrc,v 1.7 2006/09/14 13:01:31 pavel Exp $
|
||||
|
||||
. /etc/shrc
|
||||
|
||||
hup(){ (read pid; kill -HUP $pid) </var/run/$1.pid; }
|
||||
ll(){ ls -l ${1+"$@"}; }
|
||||
|
||||
case "$-" in *i*)
|
||||
PS1="${HOST%%.*}$PS1"
|
||||
set -o emacs
|
||||
# interactive mode settings go here
|
||||
;;
|
||||
esac
|
||||
|
7
etc/shrc
Normal file
7
etc/shrc
Normal file
@ -0,0 +1,7 @@
|
||||
ll(){ ls -l ${1+"$@"}; }
|
||||
|
||||
case "$-" in *i*)
|
||||
PS1="${HOST%%.*}$PS1"
|
||||
set -o emacs
|
||||
;;
|
||||
esac
|
@ -1,9 +1,8 @@
|
||||
# $NetBSD: dot.shrc,v 1.1 2006/08/31 22:49:55 hubertf Exp $
|
||||
# $NetBSD: dot.shrc,v 1.2 2006/09/14 13:01:32 pavel Exp $
|
||||
|
||||
ll(){ ls -l ${1+"$@"}; }
|
||||
. /etc/shrc
|
||||
|
||||
case "$-" in *i*)
|
||||
PS1="${HOST%%.*}$PS1"
|
||||
set -o emacs
|
||||
# interactive mode settings go here
|
||||
;;
|
||||
esac
|
||||
|
Loading…
Reference in New Issue
Block a user