How do I delete an exported environment variable?

后端 未结 5 685
时光取名叫无心
时光取名叫无心 2020-11-29 13:57

Before installing gnuplot, I set the environment variable GNUPLOT_DRIVER_DIR = /home/gnuplot/build/src. During the installation, something went wrong.

I

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-29 14:43

    As mentioned in the above answers, unset GNUPLOT_DRIVER_DIR should work if you have used export to set the variable. If you have set it permanently in ~/.bashrc or ~/.zshrc then simply removing it from there will work.

提交回复
热议问题