#!/usr/bin/env bash

if [[ "$(uname -s)" != "Darwin" ]]; then
  pprint error "Unsupported OS"
  exit 0
fi

# Install my keyboard layout
ln -snf "$ZSH/osx/US-ES-Keyboard/US-ES-International.bundle" "$HOME/Library/Keyboard Layouts/US-ES-International.bundle"
pprint ok "US-ES-Keyboard installed for user"

# Install NTFS support
brew install ntfs-3g > /tmp/brew-ntfs-3g.dot.log 2>&1
pprint ok "NTFS support added to Mac OS"
exit 0

#!/usr/bin/env bash

if [[ "$(uname -s)" != "Darwin" ]]; then
  pprint error "Unsupported OS"
  exit 0
fi

# Install my keyboard layout
# Apparently, symlinked keyboard layouts don't work on most of native Apple apps in Yosemite, at least
# ln -snf "$ZSH/osx/US-ES-Keyboard/US-ES-International.bundle" "$HOME/Library/Keyboard Layouts/US-ES-International.bundle"
cp -r "$ZSH/osx/US-ES-Keyboard/US-ES-International.bundle" "$HOME/Library/Keyboard Layouts/US-ES-International.bundle"
pprint ok "US-ES-Keyboard installed for user"

# Install NTFS support
brew install ntfs-3g > /tmp/brew-ntfs-3g.dot.log 2>&1
pprint ok "NTFS support added to Mac OS"
exit 0

Fix keyboard layout on native Apple apps
Fix keyboard layout on native Apple apps
