Browse Source

Fix source zsh

mac-init
Ein Verne 4 years ago
parent
commit
b2febfd1dd
No known key found for this signature in database
GPG Key ID: 926634D64ACAD792
  1. 2
      bootstrap.sh
  2. 26
      init_mac.sh

2
bootstrap.sh

@ -40,7 +40,7 @@ if [ -f ~/.zshrc ]; then
cat ~/.zshrc cat ~/.zshrc
mv ~/.zshrc ~/zshrc.bak mv ~/.zshrc ~/zshrc.bak
fi fi
ln -s ./.zshrc ~/.zshrc ln -s $PWD/.zshrc $HOME/.zshrc
echo "Setup applications" echo "Setup applications"
echo "- fzf" echo "- fzf"

26
init_mac.sh

@ -29,3 +29,29 @@ defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true
# Show all hidden files # Show all hidden files
defaults write com.apple.finder AppleShowAllFiles ture defaults write com.apple.finder AppleShowAllFiles ture
###############################################################################
# Trackpad, mouse, keyboard, Bluetooth accessories, and input #
###############################################################################
# Trackpad: enable tap to click for this user and for the login screen
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true
defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
defaults write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
# Trackpad: map bottom right corner to right-click
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadCornerSecondaryClick -int 2
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadRightClick -bool true
defaults -currentHost write NSGlobalDomain com.apple.trackpad.trackpadCornerClickBehavior -int 1
defaults -currentHost write NSGlobalDomain com.apple.trackpad.enableSecondaryClick -bool true
# Enable full keyboard access for all controls
# (e.g. enable Tab in modal dialogs)
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
# Disable press-and-hold for keys in favor of key repeat
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false
# Set a blazingly fast keyboard repeat rate
defaults write NSGlobalDomain KeyRepeat -int 1
defaults write NSGlobalDomain InitialKeyRepeat -int 10

Loading…
Cancel
Save