macOS 当前路径怎么放 path 里?

2018-12-12 13:16:30 +08:00
 shadownet
Linux 里直接加. Macos 里怎么玩?
1848 次点击
所在节点    macOS
7 条回复
minamike
2018-12-12 13:30:21 +08:00
好像也是点吧
shadownet
2018-12-12 13:36:33 +08:00
@minamike 加到 /etc/paths 貌似没起作用
AngryPanda
2018-12-12 14:04:58 +08:00
1. 加到 /etc/paths
2. source /etc/profile

刚试过
shadownet
2018-12-12 14:20:33 +08:00
@AngryPanda 好吧 我再试试
xio
2018-12-12 15:12:33 +08:00
用的 zsh,好像直接就是点吧。。
ls .
就是当前路径啊
yuankui
2018-12-12 17:16:35 +08:00
export PATH=$PATH:.
1069401249
2018-12-12 19:31:16 +08:00
linux 不是·PWD·吗

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/516850

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX