How to remove entry from $PATH on mac

前端 未结 7 1664
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-22 16:44

I was trying to install Sencha Touch SDK tools 2.0.0 but could not run it properly. It created an entry in the $PATH variable. Later I deleted the sencha sdk tools folder b

7条回答
  •  臣服心动
    2020-12-22 17:29

    On MAC OS X Leopard and higher

    cd /etc/paths.d
    

    There may be a text file in the above directory that contains the path you are trying to remove.

    vim textfile //check and see what is in it when you are done looking type :q 
    //:q just quits, no saves
    

    If its the one you want to remove do this

    rm textfile //remove it, delete it
    

    Here is a link to a site that has more info on it, even though it illustrates 'adding' the path. However, you may gain some insight.

提交回复
热议问题