Skip to content

Commit

Permalink
macOS: add comment for permissions error with defaults write
Browse files Browse the repository at this point in the history
Also add shellcheck to Brewfile.

Refs: mathiasbynens/dotfiles#849
  • Loading branch information
gibfahn committed Jun 3, 2019
1 parent d9fe3e4 commit 3e05bd7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ Some things you have to do manually:
- `Show full website address` -> Tick
- `Press Tab to highlight each item on a webpage`
- `Show Develop menu in menu bar`
- Give Kitty full disk access: `System Preferences` -> `Privacy` -> `Full Disk Access`.

## Adding a new file to your dotfiles

Expand Down
3 changes: 2 additions & 1 deletion helpers/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,8 @@ updateMacOSKeyboardShortcut() {
updateMacOSDefaultDict "$1" NSUserKeyEquivalents "$2" "$3"
if ! defaults read com.apple.universalaccess com.apple.custommenu.apps | grep -qF "$1"; then
update "macOS default shortcut $1 is not in com.apple.universalaccess com.apple.custommenu.apps, adding it."
sudo defaults write com.apple.universalaccess com.apple.custommenu.apps -array-add "$1"
defaults write com.apple.universalaccess com.apple.custommenu.apps -array-add "$1" \
|| echo "Add the current Terminal app to System Preferences -> Privacy -> Full Disk Access."
fi
}

Expand Down
1 change: 1 addition & 0 deletions setup/config/Brewfile-hardcore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ brew "go" # Go progamming language.
brew "ninja" # Google meta build system (used in V8).
brew "postgresql" # Solid database.
brew "protobuf" # Serialization format.
brew "shellcheck" # Linter for bash.
brew "redis" # In-memory key-object store.
brew "srkomodo/tap/shadowfox-updater" # ShadowFox Firefox Universal Dark Theme Updater (`shadowfox` to install).
brew "watchexec" # Like entr (evaluating which one is better).
Expand Down

0 comments on commit 3e05bd7

Please sign in to comment.