History log of /src/bin/sh/dot.profile (Results 1 – 25 of 34)
Revision Date Author Comments
# 779812d6 14-Sep-2025 Jilles Tjoelker <jilles@FreeBSD.org>

init: Use root's home directory in single-user mode

When starting single-user mode, use the home directory from user root as
current directory and for the HOME environment variable. If the
directory

init: Use root's home directory in single-user mode

When starting single-user mode, use the home directory from user root as
current directory and for the HOME environment variable. If the
directory does not exist, set HOME=/.

Also adjust /root/.profile to stop setting HOME, since it should always
have been set now.

This is intended to keep shell startup files working in single-user mode
after /.profile has been removed.

Reviewed by: emaste, ivy, kevans
MFC after: 1 week
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D52527

show more ...


# d0b2dbfa 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line sh pattern

Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/


# fcfa6480 26-Oct-2021 Ka Ho Ng <khng@FreeBSD.org>

sh: Set PATH envvar after setting HOME in dotfile

In single-user mode, all env vars are absent, so exptilde() would not be
able to expand ~ correctly.
Place the lines setting PATH below HOME, so exp

sh: Set PATH envvar after setting HOME in dotfile

In single-user mode, all env vars are absent, so exptilde() would not be
able to expand ~ correctly.
Place the lines setting PATH below HOME, so exptilde() would work as
expected.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Reviewed by: jilles, emaste
Differential Revision: https://reviews.freebsd.org/D27003

show more ...


# 60315f8f 24-Jan-2019 Edward Tomasz Napierala <trasz@FreeBSD.org>

Install .shrc for root, and set PS1 for the toor account.

Reviewed by: jilles
MFC after: 2 weeks
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D18872


# 94ec7ec7 29-Aug-2018 Brad Davis <brd@FreeBSD.org>

Finish moving dot.cshrc and dot.profile to bin/csh/ and bin/sh/.

Approved by: re (gjb), will (mentor)
Differential Revision: https://reviews.freebsd.org/D16770


# 3349f8bb 15-Aug-2018 Brad Davis <brd@FreeBSD.org>

Revert parts of r337849 and r337857

This fixes the build and I will redo these changes as part of a future review
that organizes them differently. The way I tried to do it here could be done
better

Revert parts of r337849 and r337857

This fixes the build and I will redo these changes as part of a future review
that organizes them differently. The way I tried to do it here could be done
better. Sorry for the noise.

Approved by: will (mentor)
Differential Revision: https://reviews.freebsd.org/D16737

show more ...


# b26c7f7f 15-Aug-2018 Brad Davis <brd@FreeBSD.org>

Move all sh and csh files into bin/sh/ or bin/csh/

This simplifies pkgbase by migrating these to CONFS so they are properly
tagged as config files.

Approved by: will (mentor)
Differential Revision:

Move all sh and csh files into bin/sh/ or bin/csh/

This simplifies pkgbase by migrating these to CONFS so they are properly
tagged as config files.

Approved by: will (mentor)
Differential Revision: https://reviews.freebsd.org/D16708

show more ...


# 47cc9ee1 08-Aug-2018 Alan Somers <asomers@FreeBSD.org>

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

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

show more ...


# 124569d0 05-Jul-2017 Edward Tomasz Napierala <trasz@FreeBSD.org>

Fix typo introduced in r320672 - check for existence of the right file.

Reported by: rpokala@
MFC after: 2 weeks


# df6744e8 05-Jul-2017 Edward Tomasz Napierala <trasz@FreeBSD.org>

Cosmetic tweaks to the default shell rc files, mostly comments.

MFC after: 2 weeks


# dd0e1324 05-Jul-2017 Edward Tomasz Napierala <trasz@FreeBSD.org>

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 boar

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

show more ...


# 11d9aa67 12-Feb-2015 Colin Percival <cperciva@FreeBSD.org>

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 th

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)

show more ...


# e42fc368 13-Nov-2009 Ed Schouten <ed@FreeBSD.org>

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 embed

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@

show more ...


# 2c61a906 29-May-2007 Doug Barton <dougb@FreeBSD.org>

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.


# 9b7a44a6 27-Aug-1999 Peter Wemm <peter@FreeBSD.org>

$Id$ -> $FreeBSD$


# 86190e83 28-Apr-1999 Jordan K. Hubbard <jkh@FreeBSD.org>

By popular request, add /usr/local/sbin to this list.


# 618aa782 27-Apr-1999 Jordan K. Hubbard <jkh@FreeBSD.org>

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 perman

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.

show more ...


# a6054afb 31-Aug-1998 Joseph Koshy <jkoshy@FreeBSD.org>

Move setting of 'crt' mail variable to {/usr/src}/etc/mail.rc.


# d2f0cccc 14-Aug-1998 Peter Hawkins <thepish@FreeBSD.org>

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


# 04b6cd53 26-Sep-1997 Joerg Wunsch <joerg@FreeBSD.org>

Set `crt' by default to make mail(1) happy.
Also, comment out the not so very commonly used interviews settings.


# 42e9ba47 03-Apr-1997 Brian Somers <brian@FreeBSD.org>

Make the default VERASE key the <-- key and remove root's
`stty's. 'nuff said.

Inventor: joerg@FreeBSD.org
Reviewer: sos@FreeBSD.org


# a90657fc 06-Mar-1997 Joerg Wunsch <joerg@FreeBSD.org>

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.


# 79403fe3 23-Feb-1997 Peter Wemm <peter@FreeBSD.org>

Revert $FreeBSD$ to $Id$


# 1130b656 14-Jan-1997 Jordan K. Hubbard <jkh@FreeBSD.org>

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

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.

show more ...


# f5ca79e6 06-Mar-1996 Jordan K. Hubbard <jkh@FreeBSD.org>

Add back the stty commands I nuked - bad idea, sorry.


12