
我使用共用帳戶,想要從命令列啟動 tcsh shell,並指定一個自訂 .tcshrc 檔案作為該 shell 的來源。 tcsh 正在從 bash shell 運行。
相當於:
tcsh (go into new shell)
source /tmp/myRCFile.tcsh
有沒有辦法在使用別名進入新 shell 之前指定來源命令?或者,還有更好的方法?
非常感謝,因為我已經厭倦打字了。
答案1
如果您可以忍受生成兩個貝殼(即$SHLVL
增加兩個):
tcsh -c 'source /tmp/myRCFile.tcsh; tcsh'