How to keep from duplicating path variable in csh

前端 未结 12 902
我在风中等你
我在风中等你 2020-11-27 05:19

It is typical to have something like this in your cshrc file for setting the path:

set path = ( . $otherpath $path )

but, the path gets dup

12条回答
  •  情歌与酒
    2020-11-27 05:56

    I always set my path from scratch in .cshrc. That is I start off with a basic path, something like:

    set path = (. ~/bin /bin /usr/bin /usr/ucb /usr/bin/X11)
    

    (depending on the system).

    And then do:

    set path = ($otherPath $path)
    

    to add more stuff

提交回复
热议问题