Function instead of alias in C shell login script

后端 未结 2 1205
伪装坚强ぢ
伪装坚强ぢ 2020-12-17 17:00

I saw in this topic that you can add a function in the shell login script instead of an alias if you want to use parameters. However, I placed the following code inside my .

2条回答
  •  失恋的感觉
    2020-12-17 17:48

    Unfortunately, you can't define functions in csh, like you can in most other shells. This feature does not exist in csh.

    The only alternative is to create a script and place it in a directory on your PATH e.g. ~/bin.

提交回复
热议问题