在Mac OS X下还原PATH [英] restore PATH under Mac OS X

查看:260
本文介绍了在Mac OS X下还原PATH的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

伙计们,我试图将新目录添加到PATH,但是追加却改写了它.有什么方法可以还原这些默认路径?

Hi guys I tried to add new directory to the PATH, but instead appending I overwrote it. Is there any way to restore those default paths?

推荐答案

只需重新启动终端,终端将根据.profile或.bashrc(如果正在运行bash)来分配变量

Just restart your terminal that will assign variables based on your .profile or .bashrc ( if you are running bash )

这篇关于在Mac OS X下还原PATH的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆