-2

When we open a new konsole or xterm .cshrc file automatically get sourced. But I dont wnat it to get sourced. So how can I make a .cshrc not get sourced on opening up a new shell or konsole.

It should only be sourced if following command is used

source.cshrc
Martin Tournoij
  • 26,737
  • 24
  • 105
  • 146
XYZ_Linux
  • 3,247
  • 5
  • 31
  • 34

1 Answers1

2

The purpose of .cshrc is to run on shell startup. If you want a file that only runs when explicitly sourced, name it something else.

chepner
  • 497,756
  • 71
  • 530
  • 681