我想运行一个名为“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/