Commit Graph

62 Commits

Author SHA1 Message Date
eadler
6dd12d609d Remove hack to emulate effective uid and just use the EUID's name in the
first place.  I was unaware of this option when originally committing
this change.

Submitted by:	gcooper
Approved by:	cperciva
MFC after:	3 days
2012-12-05 13:56:39 +00:00
eadler
fa82348722 last commit was a mistake
Pointyhat to: me (for real)
Approved by: cperciva (implicit)
2012-11-16 14:25:13 +00:00
eadler
8d33709c9b dot.login is supposed to be for bourne shell, not csh
Pointyhat to: me
Approved by: cperciva (implicit)
2012-11-16 04:25:35 +00:00
bapt
71eb24f36a Change default prompt to show ~ again for the home directory
Submitted by:	flo
Approved by:	eadler
2012-11-04 01:00:35 +00:00
eadler
3d05bb3fd0 Revert the change that makes less default.
Since I've committed this I've receieved roughly an equal
amount of email thanking me for making this change
and asking me to revert it.

I've resisted making this change because
new users tend to prefer less over more
and these users are the least likely to know
how to change the PAGER on their own.

Requested by:	many
Objected to:	just as many
Decision made by:	core
Approved by:	cperciva
MFC after:	3 days
2012-11-03 14:46:15 +00:00
eadler
fe1e7b62c1 The test fails with "exit 1" if /usr/games/fortune doesn't actually
exist.  Fix that.

PR:		conf/71994
Submitted by:	Mikael Eklund <rma@ludd.ltu.se>
Reviewed by:	crees
Reviewed by:	jilles
Approved by:	cperciva (implicit)
MFC after:	3 days
2012-11-01 19:38:03 +00:00
eadler
35af82042b - remove the length shortening on the path
- make the default prompt a bit more like scp
- make the user show as root even when using 'su' instead of 'su -'
- the key bindings didn't hurt anything but likely hide a bug
- merge history instead of overwriting it

Submitted by:	gavin, joel
Approved by:	cperciva
2012-04-11 14:13:22 +00:00
eadler
67789bd4be - Make the default values for tcsh more user friendly
- Add an examples file with many of the not accepted suggestions from the discussion

PR:		conf/160689
Reviewed by:	many
Discussed on:	current
Approved by:	cperciva
2012-03-24 18:43:18 +00:00
ed
f49c0a7c60 Switch the default terminal emulation style to xterm for most platforms.
Right now syscons(4) uses a cons25-style terminal emulator. The
disadvantages of that are:

- Little compatibility with embedded devices with serial interfaces.
- Bad bandwidth efficiency, mainly because of the lack of scrolling
  regions.
- A very hard transition path to support for modern character sets like
  UTF-8.

Our terminal emulation library, libteken, has been supporting
xterm-style terminal emulation for months, so flip the switch and make
everyone use an xterm-style console driver.

I still have to enable this on i386. Right now pc98 and i386 share the
same /etc/ttys file. I'm not going to switch pc98, because it uses its
own Kanji-capable cons25 emulator.

IMPORTANT: What to do if things go wrong (i.e. graphical artifacts):

- Run the application inside script(1), try to reduce the problem and
  send me the log file.
- In the mean time, you can run `vidcontrol -T cons25' and `export
  TERM=cons25' so you can run applications the same way you did before.
  You can also build your kernel with `options TEKEN_CONS25' to make all
  virtual terminals use the cons25 emulator by default.

Discussed on:	current@
2009-11-13 05:54:55 +00:00
dougb
39d0d8b3e6 Remove more vestiges of /usr/X11R6, but leave mtree for portmgr. 2007-05-29 06:37:58 +00:00
dougb
866e32e8a5 Remove X11R6 from the default PATH to join the new world order.
While I'm here, make the default PATH match that in the csh profile,
and login.conf.
2007-05-29 06:33:10 +00:00
krion
373fdcfae3 - Use absolute path for hostname(1)
Approved by:	green
2004-04-01 19:28:00 +00:00
markm
409ee51dc2 Make the defaults for Kerberos 5 a little more up-to-date. 2003-04-30 20:58:49 +00:00
archie
776ef1f430 Add these key bindings for tcsh users in interactive mode:
bindkey "^W" backward-delete-word
    bindkey -k up history-search-backward
    bindkey -k down history-search-forward

Reviewed by:	-current
2001-01-10 02:37:16 +00:00
rwatson
adb3b8c68a o Display only a short fortune at the root login prompt, as large ones
scroll of our pretty /etc/motd that helps the user know what to do.
o Change reflects similar setting in /share/skel
2000-07-15 03:25:14 +00:00
asmodai
c1eb7ccf3c Fix typo. rightous -> righteous. 2000-05-28 15:09:31 +00:00
rwatson
ba0bae3b55 o Migrate path, umask from dot.login to dot.cshrc
o Comment out display of fortune by default.
o Synch root's .cshrc/.login and non-root's .cshrc/.login in terms of
  gratuitous variables set (EDITOR).
o Remove some commented out variables set inconsistently or gratuitously,
  such as Interviews settings, 8-bit German locale for root only.
o Synchronize comments in header, as well as references to appropriate man
  pages.
o Remove MANPATH setting as apparently /etc/manpath.config does all that
  already.

Similar changes probably need to be made in other dot.* files for root
and skel, as all of these files seem to set different aliases, environmental
variables, prompts, and have different semantics.

As a result of this patch, leaving aside the setting of a special prompt
for root, users of csh and tcsh should find similar environments when
logging in or su'ing to any account using that shell.

Reviewed by:	asmodai, nbm, will
2000-03-25 20:23:39 +00:00
rwatson
26c765aa31 There is nothing more annoying than su'ing to root and discovering that
even simple things like md5 and ping aren't in your path.  This patch
moves the custom root-path setting from .login to .cshrc, so that users
who su to root get a decent (and consistent) path.  An appeal to change
/etc/login.conf to provide a decent path for all users seems to have been
vetoed for the time being.  As a result, users will still, by default,
not find ping or md5 in their path.  However, at least root gets a decent
default now.

Reviewed by:	asmodai
Approved by:	jkh
2000-03-07 18:52:37 +00:00
peter
289c0d262f $Id$ -> $FreeBSD$ 1999-08-27 23:37:10 +00:00
jkh
3667395a42 By popular request, add /usr/local/sbin to this list. 1999-04-28 06:43:08 +00:00
jkh
a6d35492b3 1. Remove the hateful EDITOR=ee from root's environment; it's one
thing to use it at startup, when you don't know if the user can
   handle vi or not, but yet another thing to leave it as a permanent
   land mine for root.

2. Put /usr/X11R6/bin in path; it makes getting the desktop up a lot easier.
1999-04-27 11:55:02 +00:00
brian
599fa37c05 Add Id keyword 1998-09-13 23:11:13 +00:00
bde
2f1c86bfc4 Nuked setting of crt here too.
Obtained from:	src/etc/root/dot.profile rev.1.17.
1998-09-02 14:10:22 +00:00
jkoshy
10ca2e7bc7 Move setting of 'crt' mail variable to {/usr/src}/etc/mail.rc. 1998-08-31 10:53:06 +00:00
thepish
e0dded8d46 PR: 7613
Submitted by:	axl@iafrica.com
change default setting of the crt env var from 24 to blank (mail(1) then uses
stty(1) setting
1998-08-14 12:26:43 +00:00
phk
75e847c4a4 Make roots prompt "hostname -s# " 1997-11-07 17:22:32 +00:00
joerg
22cd9dbc5d Set `crt' by default to make mail(1) happy.
Also, comment out the not so very commonly used interviews settings.
1997-09-26 08:28:19 +00:00
brian
896b4b35e0 Make the default VERASE key the <-- key and remove root's
`stty's.  'nuff said.

Inventor:	joerg@FreeBSD.org
Reviewer:	sos@FreeBSD.org
1997-04-03 21:42:42 +00:00
joerg
14893dc54a Don't clobber the TERM variable if it's already set (e.g. from /etc/ttys,
or from a telnet session).  So basically, this setting will only get in
effect in the single-user shell.

Closes PR # 2395.
1997-03-06 22:24:04 +00:00
peter
f173325ac8 Revert $FreeBSD$ to $Id$ 1997-02-23 09:21:14 +00:00
jkh
808a36ef65 Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
jkh
819b8778d2 Remove root dotfiles which did more harm than good. 1996-08-14 14:42:05 +00:00
jkh
39affc3bcc This is no longer in /stand 1996-06-15 17:49:16 +00:00
jkh
f871ede69c Make the invocation of fortune conditional 1996-04-30 04:44:37 +00:00
jkh
e9bd49d7bb Put the stty back here. 1996-03-06 05:25:01 +00:00
jkh
7423e2cec3 Add back the stty commands I nuked - bad idea, sorry. 1996-03-06 05:23:00 +00:00
mpp
3aff305a53 Another round of spelling fixes. 1996-01-31 15:03:18 +00:00
jkh
1bc25004b3 Rip these things down to the absolutely minimums - no tsets, no
sttys, no fancy prompts, nothing.  Everything else seems to be
too contraversal, so we'll go vanilla.
1995-12-01 20:12:05 +00:00
ache
bc29773048 Remove ENABLE_STARTUP_LOCALE, use proper name for LANG 1995-11-30 03:54:37 +00:00
jkh
25c3e86bc0 Revamp root's dotfiles.
Submitted by:	Patrick Hausen + mods by me
1995-11-30 02:28:37 +00:00
nate
8fd6f0e694 Added /usr/src/sys/compile to cdpath.
Set cdpath instead of leaving it commented out.
1995-09-19 04:57:31 +00:00
nate
34e8d1a314 Fix the cdpath to find utilities in the gnu src tree. 1995-09-18 19:53:42 +00:00
joerg
edb68238d8 Correct my last fix regarding the "Don't login..." message; plain csh
is too stupid to report anything about ARGV[0], so we will always
complain there, even for the "su -" case.  The fix worked for tcsh
however.
1995-07-08 11:11:23 +00:00
joerg
840299d61d dot.login:
Finally transform the "Don't login as root..." message to make it
clear that `su' is meant to be a command.  Will save us a lot of
questions about the user named `su'.  Make the message magically
disappear if the user did an ``su - root'', since it might be a bit
silly to ask him to perform an `su'...

dot.cshrc:

Remove the no-op `-g' options from the ls aliases, and replace them by
`-o'.  This way, if root does an `ls -l', he will see the immutable
flag and (hopefully) not be too surprised about the "Permission
denied".
1995-06-29 06:30:43 +00:00
phk
e98ab36cf2 Fix a bunch of annoying details here, while I remember it. 1994-10-27 05:27:00 +00:00
rgrimes
2627fe9852 Root should NEVER have . in the path. 1994-09-22 08:32:39 +00:00
rgrimes
5e58b262f9 Revert the change that removed the -k flag from the ls alias, we have ls -k
again.
1994-09-22 08:23:02 +00:00
pst
2543098e26 Fix 'ls' alias to work with new ls (-k is not supported) 1994-09-19 07:01:35 +00:00
rgrimes
ae5f9a40b7 Eliminate use of raw control characters in stty commands, make echo's and
stty commands self consistent.

Submitted by:	bde
1994-09-16 04:20:14 +00:00
jkh
186999f336 Since we're using syscons now, make ^H the backspace character by
default (ack ack, evil evil, but easier than changing syscons at this
late hour).
1994-06-15 22:58:49 +00:00