unixorn/tumult.plugin.zsh

View on GitHub
bin/enable-network-ds-store-files

Summary

Maintainability
Test Coverage
#!/usr/bin/env bash
#
# Enable writing .DS_Store to network shares
#
# Copyright 2020, Joe Block <jpb@unixorn.net>

if [[ "$(uname -s)" != 'Darwin' ]]; then
  echo 'Sorry, this script only works on macOS'
  exit 1
fi

exec defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool FALSE