tcsh extendable confguration.

Bug #1072028 reported by rew
6
This bug affects 1 person
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/login.d/*`)
    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/csh/cshrc.d"
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.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.