Commit Graph

37 Commits

Author SHA1 Message Date
Alan Somers
47cc9ee1b1 Switch the default pager for most commands to less
Finally, a pager for the nineties.

MFC after:	Never
Relnotes:	Yes
Differential Revision:	https://reviews.freebsd.org/D13465
Poll:		https://reviews.freebsd.org/V7
2018-08-08 19:24:20 +00:00
Colin Percival
11d9aa6707 Step 1 of eliminating the "games" distribution: Move binaries to /usr/bin;
update paths; and include everything in the "base" distribution.

The "games" distribution being optional made sense when there were more
games and we had small disks; but the "games-like" games were moved into
the ports tree a dozen years ago and the remaining "utility-like" games
occupy less than 0.001% of my laptop's small hard drive.  Meanwhile every
new user is confronted by the question "do you want games installed" when
they they try to install FreeBSD.

The next steps will be:

2. Removing punch card (bcd, ppt), phase-of-moon (pom), clock (grdc), and
caesar cipher (caesar, rot13) utilities.  I intend to keep fortune, factor,
morse, number, primes, and random, since there is evidence that those are
still being used.

3. Merging src/games into src/usr.bin.

This change will not be MFCed.

Reviewed by:	jmg
Discussed at:	EuroBSDCon
Approved by:	gjb (release-affecting changes)
2015-02-12 05:35:00 +00:00
Eitan Adler
01d9852a4d 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
Baptiste Daroussin
4cbff7a3dc Change default prompt to show ~ again for the home directory
Submitted by:	flo
Approved by:	eadler
2012-11-04 01:00:35 +00:00
Eitan Adler
382dc3ca38 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
Eitan Adler
bf98096218 - 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
Eitan Adler
1233083107 - 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
Doug Barton
9c933e2939 Remove more vestiges of /usr/X11R6, but leave mtree for portmgr. 2007-05-29 06:37:58 +00:00
Kirill Ponomarev
c6e88cbf92 - Use absolute path for hostname(1)
Approved by:	green
2004-04-01 19:28:00 +00:00
Archie Cobbs
64ca32560d 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
Jeroen Ruigrok van der Werven
3e533c306c Fix typo. rightous -> righteous. 2000-05-28 15:09:31 +00:00
Robert Watson
bddc1909cf 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
Robert Watson
499107bbb3 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 Wemm
9b7a44a60e $Id$ -> $FreeBSD$ 1999-08-27 23:37:10 +00:00
Jordan K. Hubbard
618aa782be 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 Somers
965066d630 Add Id keyword 1998-09-13 23:11:13 +00:00
Bruce Evans
99b32a5043 Nuked setting of crt here too.
Obtained from:	src/etc/root/dot.profile rev.1.17.
1998-09-02 14:10:22 +00:00
Poul-Henning Kamp
3510af87fa Make roots prompt "hostname -s# " 1997-11-07 17:22:32 +00:00
Joerg Wunsch
04b6cd5336 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
Jordan K. Hubbard
a17c962fd0 This is no longer in /stand 1996-06-15 17:49:16 +00:00
Jordan K. Hubbard
7b55c6d153 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
Jordan K. Hubbard
b5acb70412 Revamp root's dotfiles.
Submitted by:	Patrick Hausen + mods by me
1995-11-30 02:28:37 +00:00
Nate Williams
af504bcff4 Added /usr/src/sys/compile to cdpath.
Set cdpath instead of leaving it commented out.
1995-09-19 04:57:31 +00:00
Nate Williams
01a9a98ea2 Fix the cdpath to find utilities in the gnu src tree. 1995-09-18 19:53:42 +00:00
Joerg Wunsch
650bd71d67 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
Poul-Henning Kamp
ca7cc5c89e Fix a bunch of annoying details here, while I remember it. 1994-10-27 05:27:00 +00:00
Rodney W. Grimes
50db970974 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
Paul Traina
986c2270fe Fix 'ls' alias to work with new ls (-k is not supported) 1994-09-19 07:01:35 +00:00
Rodney W. Grimes
c8d1c78f59 Add $Id$'s 1994-02-21 20:36:03 +00:00
Rodney W. Grimes
d5b9fc6698 Fix up the cdpath, it was missing a / before i386. 1994-02-18 09:51:54 +00:00
Rodney W. Grimes
81cc481644 Added savehist=1000 as a security feature to know what root has been up to,
added very common set filec.

Added /sys/i386 to be in cdpath so cd conf goes to sys/i386/conf instead of
sys/conf.
1994-01-22 10:58:26 +00:00
Rodney W. Grimes
b4218e818a Updated paths and cdpath to be more appropriate to FreeBSD (removal of old
directories).

Junked all the sccs aliases that get in the way of rcs
1993-08-31 07:19:58 +00:00
Nate Williams
db267812a6 Default BLOCKSIZE for root is K-Blocks 1993-08-02 22:50:43 +00:00
Nate Williams
774839c35a Removed df/du aliases, will make them more global and use BLOCKSIZE
environment variable
1993-08-02 21:23:27 +00:00
Rodney W. Grimes
a236d4b122 Put back the du -k and df -k flags since POSIX says they should still work,
and Nate is fixing them to work.
1993-08-02 21:04:36 +00:00
Rodney W. Grimes
30c9ac0b78 Removed aliases of df -> df -k and du -> du -k, as the k option is not
supported in the new df and du code, use setenv BLOCKSIZE 1024 to get
the same effect.
1993-08-01 00:40:29 +00:00
Rodney W. Grimes
1bf9d5d951 Initial import of 386BSD 0.1 othersrc/etc 1993-06-20 13:41:45 +00:00