Commit Graph

38 Commits

Author SHA1 Message Date
pavel
990a4b27aa Source /etc/shrc only if it exists. Inspired by PR install/37209. 2007-11-24 11:14:41 +00:00
pavel
d8b49bb74e Factor out common settings from /root/.shrc and /etc/skel/.shrc to a
new file /etc/shrc.

As proposed on tech-userlevel.
2006-09-14 13:01:31 +00:00
hubertf
d0b2986f47 Sync order with src/etc/skel/dot.cshrc, no functional change. 2006-08-31 22:33:14 +00:00
sketch
fbdc9c3fcb Use hostname(1) in preference to uname(1) in case /usr isn't mounted. 2005-02-22 09:12:17 +00:00
sketch
28dfc695f0 Revision 1.2 of dot.shrc changed the prompt to use a HOST variable without
setting it anywhere, so set it here.
2005-02-22 08:28:34 +00:00
lukem
ee04d88971 Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall'
target) instead of using home-grown 'distribution' targets or using
FILES with the 'install' target.
Add some etc/ subdir Makefiles where appropriate.

XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.
2004-05-16 09:53:09 +00:00
cjep
d1b485c800 Now that we have nuked /sys, change the cdpath to contain /usr/src/sys
rather than /sys.
2003-09-02 18:39:27 +00:00
abs
5470c1def0 If we are going to point ENV at .shrc, and link this in as /.profile as well
as /root/.profile, then use /root/.shrc rather than $HOME/.shrc otherwise
single user mode tries to use /.shrc...
2002-10-10 11:15:41 +00:00
toddpw
9af306351b Fix syntax error in r1.5 -- semicolon needed before closing brace on same line. 2001-04-01 01:32:10 +00:00
tv
e64fcaf2af Also make hup work in single user; revert dot.cshrc to atatat's version,
and make equivalent for dot.shrc.
2001-03-01 22:45:49 +00:00
tv
15f19b7a16 Use "head -1" as a generic way to snarf the first line of the pid file;
also works with the existing alias in dot.shrc.
2001-03-01 22:30:41 +00:00
atatat
f4ad2126ae Teach the hup alias to deal with sendmail's pid file 2001-03-01 22:26:57 +00:00
simonb
598c993af2 Add RCSid. 2000-05-14 23:13:54 +00:00
mycroft
e3d7832343 Minor change:
Don't use a backquote expression to get the host name; use a pattern
substitution on lop-nor.ihack.net instead.
2000-05-14 18:20:55 +00:00
frueauf
83072a01c7 Since src/gnu/usr.sbin is populated add it to the cdpath. 2000-05-06 13:17:33 +00:00
mycroft
4bf1c78bfb Make the tset stuff actually set the environment variables again.
Someone was on crack.
2000-02-19 19:00:13 +00:00
mycroft
b24c03aa71 Simplify the tset crap, and do not set $HOME gratuitously. 2000-02-19 18:39:01 +00:00
jwise
4316d096db 1.) bring over the second half of David Brownlee's change to dot.login --
don't query the user for terminal type if the type is not `unknown'

2.) change this a little in both the csh and the [k]sh cases -- do call
    tset(1) even if the terminal type is known (so that TERMCAP is set
    properly, but don't have it query the user.
2000-02-16 03:07:09 +00:00
jwise
8d796b1774 Port to [k]sh(1) startup files David Brownlee's improvement from
cvs rdiff -r1.4 -r1.5 basesrc/etc/root/dot.login

As there, text is from Miles Nordin.
2000-02-16 02:02:02 +00:00
abs
6d39fee74c Only display the 'use su' message in the non 'su -' case.
Update the 'use su' message (text from Miles Nordin).
If the terminal type is !unknown, do not prompt for it.
2000-02-15 19:29:54 +00:00
mycroft
c43c81eec7 (Ab?)use some sh(1) features:
* Put the aliases in a separate file, referenced by $ENV, so that they're
  present in subshells.
* Do the same to make `set -o emacs' happen automatically in interactive
  shells.  (Yay, line editing by default!)
* Use `export FOO=bar' syntax, as it's shorter and other sh(1)-like shells
  all support it these days.
1999-11-05 11:30:13 +00:00
abs
f85ff94580 Don't don't don't assume /usr/bin/id is always present. Loses in single user. 1999-06-15 05:44:22 +00:00
mycroft
0d59551634 Avoid using id(1), as this loses when /usr isn't mounted. 1999-04-04 09:58:57 +00:00
hubertf
b779dad4d4 Add hup, ll and x shell functions similar to the aliases in dot.cshrc
plus set the prompt. Tested with /bin/sh and /bin/ksh.
1999-03-30 02:36:05 +00:00
thorpej
93e03f92fd Sync PATH with our csh counterpart. 1998-01-17 19:36:40 +00:00
perry
bac6f0ec1e fix root .cshrc so that it ends prompts with a '#' when invoked by root
and a '%' when invoked by non-root.
Submitted by riz@beast.boogers.sf.ca.us in pr-4248
1998-01-10 00:51:56 +00:00
mrg
0e2d79bd14 fix paths: remove old cruft and add pkg & X11R6 1997-12-17 01:45:13 +00:00
mrg
96a74009df RCSid police. fix pr#4307 from Eric Haszlakiewicz: csh aliases broken with. 1997-10-28 03:33:18 +00:00
mikel
ef538c3176 cleanup Lite-1 merge 1997-02-15 10:02:07 +00:00
mikel
ae06cfb1cf import 4.4BSD-Lite 1997-02-15 05:27:21 +00:00
christos
d58b878498 Fix PR/1024: Add /usr/local/{s,}bin to the path and the gnu sources to
cdpath. I think that adding /usr/local to the path is ok: everyone does
it, and it is part of mtree.
1996-09-30 17:33:21 +00:00
mrg
102584d38e don't put bogus info in here. 1996-05-22 01:36:12 +00:00
cgd
0332985c6c get dot out of root's path. 1994-12-24 12:48:01 +00:00
jtc
38de38f2e1 The contents of this file are evaluated by root, users without a home dir,
and even by the shell in single user mode.  This change makes it work in
all of those circumstances, though probably not optimally.

It is likely that something better will be checked in after all of the
outstanding issues are resolved, but I have to check in something that
works before this week's tarballs are created.
1994-03-26 01:27:47 +00:00
jtc
6b7dba54bd Changed .login (csh) and .profile (sh) to be consistant with each other.
In particular, explicit setting of erase and kill chars via stty has been
removed.
1994-03-24 01:23:40 +00:00
mycroft
d69282df24 Set 'BLOCKSIZE' variable (a la 4.4) rather than aliasing a bunch of things. 1993-12-12 02:26:18 +00:00
cgd
e2b50fbd3a remove /usr/local and /usr/contrib from root's path 1993-06-06 02:49:58 +00:00
cgd
61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00