为MacBook Air Computer编写脚本时,如何指定配置文件?

发布于 2025-02-03 10:24:35 字数 515 浏览 4 评论 0原文

我现在正在学习如何在Apple Macbook Air Computer上编写脚本。
我知道它与.zshrc文件有关。
我将不得不创建自己的C函数。
我将在目录中放置函数---->>> MyownFuncdir
我的理解是,我必须在某种配置文件中确定此myownfuncdir
但是,如何让系统知道此配置文件的名称是什么?文件位于哪里?

这是.zshrc文件的内容,我到目前为止创建了:

export PATH=$PATH:/Users/grigoryzubkis
echo  "#1"
chmod   755 /Users/grigoryzubkis/RunIt
chmod   755 /Users/grigoryzubkis/simplemenu.sh
chmod   755 /Users/grigoryzubkis/learnUnix.sh
echo "#2"

I am learning now how to write scripts on my Apple MacBook Air computer.
I understand that it is related to .zshrc file.
I will have to create my own C functions.
I will put functions in a directory ---->>> MyOwnFuncDir
My understanding is I have to secify this MyOwnFuncDir in some kind of Configuration file.
But how do I let the system know what is the name of this Configuration file and where is the file located?

This is the content of the .zshrc file, I have created so far:

export PATH=$PATH:/Users/grigoryzubkis
echo  "#1"
chmod   755 /Users/grigoryzubkis/RunIt
chmod   755 /Users/grigoryzubkis/simplemenu.sh
chmod   755 /Users/grigoryzubkis/learnUnix.sh
echo "#2"

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文