Modify .tcshrc



  • Hi,
    I am trying to add some aliases to the .tcshrc. This seems to work until the next pfsense reboot when the .tcshrc file get overwritten. Is there a way to make these changes permanent?

    Thank you.



  • Bumping this. Does really nobody know how to make edits to .tchrc permanent?



  • Hi,

    Had a quick look to see how .tschrc is regenerated, but couldn't find 'the place'.

    What about using https://doc.pfsense.org/index.php/Executing_commands_at_boot_time ?



  • Thank you. I saw the boot command options earlier, but dismissed it because I think the "alias" command needs to be executed when tcsh is invoked and not at boot time. However, I did not actually test that. I am now testing including the command in the .login file. This does not seem to get rewritten every so often. The downside is that it is not automatically executed but needs to be invoke from the command line with "tcsh -l" (this is a lower case L). So I am still looking for a better solution.



  • Bumping this.

    The default colors are horrible and I like the ll alias. On 2.3.x I could edit the .tcshrc and add/overwrite my customizations:

    setenv LSCOLORS "fxgxbxdxcxegedabagacad"
    alias ll ls '-lA'

    Running 2.4.4 and the editing of .tcshrc does not survive a reboot.

    How do I make this a permanent change?



  • @davidmcqueenlps said in Modify .tcshrc:

    Running 2.4.4 and the editing of .tcshrc does not survive a reboot.
    How do I make this a permanent change?

    I've been looking for this one also.
    I found /.etc/skel/dot.tcshrc - it's the same file. I guess it's being copied to /root/.tcshrc on boot.
    Change /.etc/skel/dot.tcshrc and see what happens.