1999-08-28 00:22:10 +00:00
|
|
|
# $FreeBSD$
|
1995-12-01 08:41:35 +00:00
|
|
|
#
|
1996-09-21 21:35:47 +00:00
|
|
|
# .profile - Bourne Shell startup script for login shells
|
|
|
|
#
|
|
|
|
# see also sh(1), environ(7).
|
|
|
|
#
|
|
|
|
|
2014-04-14 18:07:00 +00:00
|
|
|
# These are normally set through /etc/login.conf. You may override them here
|
|
|
|
# if wanted.
|
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
|
|
|
# PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:$HOME/bin; export PATH
|
1996-09-21 21:35:47 +00:00
|
|
|
|
1997-02-17 18:56:29 +00:00
|
|
|
# Setting TERM is normally done through /etc/ttys. Do only override
|
|
|
|
# if you're sure that you'll never log in via telnet or xterm or a
|
|
|
|
# serial line.
|
2009-11-13 05:54:55 +00:00
|
|
|
# TERM=xterm; export TERM
|
1996-05-11 19:15:17 +00:00
|
|
|
|
1996-09-21 21:35:47 +00:00
|
|
|
EDITOR=vi; export EDITOR
|
2018-08-08 19:24:20 +00:00
|
|
|
PAGER=less; export PAGER
|
1996-09-21 21:35:47 +00:00
|
|
|
|
1997-08-03 18:37:46 +00:00
|
|
|
# set ENV to a file invoked each time sh is started for interactive use.
|
|
|
|
ENV=$HOME/.shrc; export ENV
|
2001-06-25 20:40:02 +00:00
|
|
|
|
2019-01-09 11:04:27 +00:00
|
|
|
# Let sh(1) know it's at home, despite /home being a symlink.
|
|
|
|
if [ "$PWD" != "$HOME" ] && [ "$PWD" -ef "$HOME" ] ; then cd ; fi
|
|
|
|
|
2017-07-05 10:37:37 +00:00
|
|
|
# Query terminal size; useful for serial lines.
|
|
|
|
if [ -x /usr/bin/resizewin ] ; then /usr/bin/resizewin -z ; fi
|
|
|
|
|
2017-07-05 13:08:07 +00:00
|
|
|
# Display a random cookie on each login.
|
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
|
|
|
if [ -x /usr/bin/fortune ] ; then /usr/bin/fortune freebsd-tips ; fi
|