tcsh extendable confguration.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Raspbian |
New
|
Undecided
|
Unassigned |
Bug Description
/etc/csh.login contains:
# allow for other packages/system admins to customize the shell environment
if (-e /etc/csh/login.d && `\ls /etc/csh/login.d` != "") then
foreach FILE (`ls /etc/csh/
source $FILE;
end;
endif
which allows packages or admins (me ;-) ) to configure extra things to do on login.
On a number of systems I've moved often-used aliases and other config things (local addition to the path) into files that I just need to put into that directory. Neat!
However for "sudo -s" to work with tcsh, these additions need to be called from csh.cshrc .
So I've now added:
# allow for other packages/system admins to customize the shell environment
set dir="/etc/
if (-e $dir && `ls $dir` != "") then
foreach FILE (`ls $dir/*`)
source $FILE;
end;
endif
to my /etc/csh.cshrc to allow for this. It'd be neat to include this in the distribution so that in the future I no longer have to edit the system's /etc/csh.cshrc to obtain this behaviour.