为MacBook Air Computer编写脚本时,如何指定配置文件?
我现在正在学习如何在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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论