man tcsh:
....
A login shell begins by executing commands from the system files
/etc/csh.cshrc and /etc/csh.login. It then executes commands from
files in the user's home directory: first ~/.tcshrc (+) or, if
~/.tcshrc is not found, ~/.cshrc, then ~/.history (or the value of the
histfile shell variable), then ~/.login, and finally ~/.cshdirs (or the
value of the dirsfile shell variable) (+). The shell may read
/etc/csh.login before instead of after /etc/csh.cshrc, and ~/.login
before instead of after ~/.tcshrc or ~/.cshrc and ~/.history, if so
compiled; see the version shell variable. (+)
.....
可是我用root登入或是su成root,
shell都不會去讀~/.cshrc,
請問有人踫到這種情況嗎?
我~/下只建.cshrc,
但是一般user就沒問題了。
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.115.220.161