gpt4 book ai didi

bash_profile 多行别名

转载 作者:行者123 更新时间:2023-11-29 09:35:52 24 4
gpt4 key购买 nike

我想运行一个名为“showfiles”的命令,该命令将运行命令“defaults write com.apple.finder AppleShowAllFiles TRUE”和“killall Finder”我该怎么做?

最佳答案

我不确定为什么@gahooa 建议的 && 选项不起作用,但还有另一种选择:创建一个 shell 函数:

showfiles() {
defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder
}

关于bash_profile 多行别名,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6685964/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com