Bug 19573 - Dot Files for Optional Shells
Summary: Dot Files for Optional Shells
Status: Closed Not Accepted
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: 4.0-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-06-29 07:00 UTC by Annelise Anderson
Modified: 2017-08-09 18:40 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Annelise Anderson 2000-06-29 07:00:01 UTC
	
Shells installed from ports come without dot files.  Why not provide
dot files to be placed in /usr/local/share/skel, and alter adduser to
provide the option of installing dot files from both /usr/share/skel
and /usr/local/share/skel?

The dot files should (I guess) be consistent with those provided for
sh and csh/tcsh.  Actually tcsh isn't a really a problem as it reads
.cshrc if .tcshrc isn't available. The setup of zsh is not obvious. 

My own view is that on initial installation, the dot files should
provide prompts that indicate user, hostname (without domain), and
location in the file system (pwd).  On su -m, the prompt character
should change from $,%, or > to #.  Who am I and where am I?

The following .bash_profile and .bashrc do this for bash; I have some
doubts about them, because it seems that it's necessary to re-read
.bash_profile for the pwd part to work after su -m.  They don't
set ENV, but this seems not to be essential.

Fix: 

See above.
Comment 1 Alexey Zelkin freebsd_committer 2000-07-08 15:13:22 UTC
Responsible Changed
From-To: gnats-admin->freebsd-bugs

Misfiled PR
Comment 2 Sheldon Hearn freebsd_committer 2000-07-10 13:37:34 UTC
State Changed
From-To: open->feedback

> Why not provide dot files to be placed in /usr/local/share/skel, 
> and alter adduser to provide the option [...] 

Indeed, why not? :-) 

If I were you, I'd produce patches that abstain from actually 
introducing any new dot files.  Just add the machanism to 
handle them. 

That way, your idea (which is good) is not lost in a religious war 
about what should be in dot files. :-)
Comment 3 Dag-Erling Smørgrav freebsd_committer 2001-03-13 00:40:15 UTC
State Changed
From-To: feedback->open

Still an issue. 


Comment 4 Dag-Erling Smørgrav freebsd_committer 2001-03-13 00:40:15 UTC
Responsible Changed
From-To: freebsd-bugs->des

I'll see what I can whip up for zsh and bash.
Comment 5 Dag-Erling Smørgrav freebsd_committer 2001-11-27 13:42:08 UTC
State Changed
From-To: open->suspended

Still a good idea, but I don't have time to work on it right now.
Comment 6 Eitan Adler freebsd_committer freebsd_triage 2012-09-16 00:52:24 UTC
Responsible Changed
From-To: des->eadler

des does not appear to be working on it and I made the cshrc shell 
defaults
Comment 7 Eitan Adler freebsd_committer freebsd_triage 2013-02-04 01:05:16 UTC
State Changed
From-To: suspended->open

I just don't have time to deal with this 


Comment 8 Eitan Adler freebsd_committer freebsd_triage 2013-02-04 01:05:16 UTC
Responsible Changed
From-To: eadler->freebsd-bugs

I just don't have time to deal with this
Comment 9 Eugene Grosbein freebsd_committer 2017-08-09 18:40:59 UTC
No progress for 17 years for this misfilled PR. It should be Ports PR since the beginning. Please fill new PR for corresponding port if this is still relevant.