How to keep from duplicating path variable in csh

前端 未结 12 952
我在风中等你
我在风中等你 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:53

    ok, not in csh, but this is how I append $HOME/bin to my path in bash...

    case $PATH in
        *:$HOME/bin | *:$HOME/bin:* ) ;;
        *) export PATH=$PATH:$HOME/bin
    esac
    

    season to taste...

提交回复
热议问题