Mac 下设置文件夹的隐藏和显示
全局显示和隐藏文件夹
# 显示全部文件
defaults write com.apple.finder AppleShowAllFiles -bool true
osascript -e 'tell application "Finder" to quit'
# 不显示全部文件
defaults write com.apple.finder AppleShowAllFiles -bool false
osascript -e 'tell application "Finder" to quit'
设置显示和隐藏文件夹
chflags hidden ~/路径/文件夹名
chflags nohidden ~/路径/文件夹名