Additional macos setup

This commit is contained in:
Georgi Gardev
2024-03-05 00:51:26 +02:00
parent 23f1285b80
commit 231fcb3d6e
3 changed files with 24 additions and 4 deletions
+5 -1
View File
@@ -1,5 +1,5 @@
linux: link bash_git_prompt tmux vim
macos: link bash_git_prompt brew cask tmux vim
macos: link bash_git_prompt brew cask tmux vim link_mac
link:
-rm ~/.bash_aliases
@@ -15,6 +15,10 @@ link:
-ln -s ~/Git/dotfiles/git/.gitconfig ~
-ln -s ~/Git/dotfiles/tmux/.tmux.conf ~
link_mac:
-rm ~/.hushlogin
-ln -s ~/Git/dotfiles/macos/.hushlogin ~
brew:
-./macos/install_brew.sh
-sudo chsh -s /usr/local/bin/bash
+4
View File
@@ -0,0 +1,4 @@
# The mere presence of this file in the home directory disables the system
# copyright notice, the date and time of the last login, the message of the
# day as well as other information that may otherwise appear on login.
# See `man login`.
+15 -3
View File
@@ -51,6 +51,19 @@ defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false
# Set the timezone; see `sudo systemsetup -listtimezones` for other values
sudo systemsetup -settimezone "Europe/Sofia" > /dev/null
###############################################################################
# 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
# Set a blazingly fast keyboard repeat rate
defaults write NSGlobalDomain KeyRepeat -int 2
defaults write NSGlobalDomain InitialKeyRepeat -int 10
###############################################################################
# Energy saving #
###############################################################################
@@ -58,10 +71,10 @@ sudo systemsetup -settimezone "Europe/Sofia" > /dev/null
# Restart automatically if the computer freezes
sudo systemsetup -setrestartfreeze on
# Sleep the display after 10 minutes
# Sleep the display after 10 minute
sudo pmset -a displaysleep 10
###############################################################################
############################################################### ################
# Screen #
###############################################################################
@@ -84,7 +97,6 @@ sudo defaults write /Library/Preferences/com.apple.windowserver DisplayResolutio
###############################################################################
# Dock, Dashboard, and hot corners #
###############################################################################
# TODO: Not sure this section works tbh
# Set the icon size of Dock items
defaults write com.apple.dock tilesize -int 30