Commit Graph

28 Commits

Author SHA1 Message Date
Edward Tomasz Napierala
df6744e840 Cosmetic tweaks to the default shell rc files, mostly comments.
MFC after:	2 weeks
2017-07-05 13:08:07 +00:00
Edward Tomasz Napierala
dd0e1324ba Run "resizewin -z" from the default shell profile files. This makes
the terminal work properly out of the box when logging over a serial
line, which is quite important for the user experience on boards like
Raspberry Pi.  It doesn't affect cases where the terminal size is
already non-zero, such as SSH or vt(4) sessions.

Note that this doesn't handle a scenario pointed out by rgrimes@:
when the terminal is resized after login, the terminal size won't
get updated even after logging out and back in.

Reviewed by:	imp
Obtained from:	CheriBSD
Sponsored by:	DARPA, AFRL
Differential Revision:	https://reviews.freebsd.org/D10642
2017-07-05 10:37:37 +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
Bryan Drewery
c0379dbd3e Prefer /etc/login.conf for some of these environment values.
PR:		conf/186085
Reported by:	Glen Neff <glen.neff@emc.com>
MFC after:	2 weeks
Sponsored by:	EMC
2014-04-14 18:07:00 +00:00
Ed Schouten
e42fc36867 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
Ruslan Ermilov
0c9e0226e3 Add explicit test so that non-existence of /usr/games/fortune
doesn't affect command exit status.
2009-03-27 21:13:14 +00:00
Doug Barton
81c16aec72 Remove /usr/X11R6 from the path here too.
Reminded by:	Niclas Zeising <niclas.zeising@gmail.com>
2007-05-29 22:07:57 +00:00
Mark Peek
c4e0f575d3 Synchronize path with dot.cshrc by adding /usr/local/sbin.
PR:             26720
Submitted by:   Rob Simmons <rsimmons@wumpus.wlcg.com>
MFC after:	1 week
2002-07-07 00:00:54 +00:00
Nik Clayton
9f1f5e8d53 Automatically exec bash at startup if it exists^U Turn on the display of
tips from the freebsd-tips database at login time.
2001-06-25 20:40:02 +00:00
Peter Wemm
7f3dea244c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +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
Peter Hawkins
6770d3ca0a PR: 7613
Submitted by:	Sheldon Hearn <axl@iafrica.com>
set crt='' so that mail(1) will page according to stty(1) setting
1998-08-14 13:49:57 +00:00
Jun Kuriyama
9028df4c8e Sync PATH variable with 'dot.login'.
I think here is not my area so feel free to back this out when any
troubles are happened.

Pointed out by:		IIJIMA Akihiro <aki@noc.titech.ac.jp>
1998-06-06 15:01:46 +00:00
Joerg Wunsch
ee59fc38c1 Set `crt' by default to make mail(1) happy. 1997-09-26 08:28:31 +00:00
Andrey A. Chernov
1409b687c9 Remove LANG settings from here, they must be in login classes instead 1997-08-15 23:41:27 +00:00
Wolfram Schneider
386e883716 Move aliases and shell flags from .profile to .shrc so these settings
are effective in interactive non-login shells, e.g. xterm or su(1).

Submitted by: Wolfgang Helbig <helbig@ba-stuttgart.de>
Finally close PR #3740
1997-08-03 18:37:46 +00:00
Philippe Charnier
a296cb3019 Remove obsolete flag (-g) for ls.
PR:conf/3730
Submitted by: helbig@MX.BA-Stuttgart.De
1997-07-15 09:37:02 +00:00
Wolfram Schneider
1d2134f27d Enable some aliases.
Add example for variable CDPATH, commented out.
1997-03-08 16:35:39 +00:00
Peter Wemm
b97fa2ef50 Revert $FreeBSD$ to $Id$ 1997-02-22 14:13:04 +00:00
Joerg Wunsch
5263d0898e Various sanitizations:
. Don't clobber the TERM setting; it's supposed to be done by /etc/ttys
  already.
. Comment out the Interviews stuff, 98 % of all users probably won't
  ever use it.
. Install the files with better default permissions in the skeleton
  directory; pw(8) retains the permissions when creating a new
  acount, and installing them read-only is stupid, yet installing
  .rhosts world-readable is dangerous.

2.2 candidate
1997-02-17 18:56:29 +00:00
Jordan K. Hubbard
1130b656e5 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
Wolfram Schneider
f98e6287f8 Improve comments, sync sh/csh scripts if possible. 1996-09-21 21:35:47 +00:00
Wolfram Schneider
55f0df06bc Add comments for
some useful aliases
	8-bit locale
	a nicer prompt
1996-05-12 14:32:23 +00:00
Wolfram Schneider
fc95b7a30a Add a comment how to enable the emacs command line editor 1996-05-11 19:15:17 +00:00
Jordan K. Hubbard
2db54afc5e Similarly spartan dotfiles. 1995-12-01 20:13:42 +00:00
Jordan K. Hubbard
6a9f25ddaa Update these from new examples in etc/root. Also comment out
dot.rhosts entries which are wholly bogus and not worth a search
on.
1995-12-01 08:41:35 +00:00
Jordan K. Hubbard
f3bee8cfe4 Make the default paths a bit more rational for our systems (sheesh!).
Thanks, Sean!
Suggested by:	Sean McDermott <spm@staff.cc.purdue.edu>
1995-01-29 08:01:05 +00:00
Rodney W. Grimes
afe61c1516 BSD 4.4 Lite Share Sources 1994-05-30 19:09:18 +00:00