git clone https://github.com/eakl/dotfiles.git && cd dotfiles/bin
Then run dotfiles
to get an overview of what is possible
./dotfiles.sh
help
- Output the usage messagedeploy
- Deploy dot filesinstall
- Apply install scripts- brew - Install Brew packages
- atom - Install Atom packages
setup
- Apply setup scripts- credentials - Copy credentials to their respective location
- git - Setup Git
- eslint - Give permissions to the ESLint deployer
- mongodb - Symlink MongoDB configuration file to the CONFIG folder
- pip - Configure PIP
macos
- Apply MacOS system preferences- defaults - Apply defaults for MacOS (Be Carreful)
update
- Update packages and package managers (brew, npm)clean
- Cleanup caches (brew, npm)
- Don't apply those settings blindly. They reflect my workflow and should be custom according to your need
- The recommended execution order is from top down (you should
--deploy
the dotfiles before installing anything) - You also need to restart your Shell (recommended) or at least run
source activate ~/.bash_profile
# Enable “focus follows mouse” for Terminal.app
# i.e. hover over a window and start typing in it without clicking first
defaults write com.apple.terminal FocusFollowsMouse -bool true
# Disable the annoying line marks '['
defaults write com.apple.Terminal ShowLineMarks -int 0
# Change computer name
Settings > General > About
# Disable the sound effects on boot
Settings > Sound > Play sound on startup
# Review iCloud
Settings > iCloud
# Disable Gatekeeper
sudo spctl --master-disable
Settings > Privacy & Security
# Disable hot corner
Settings > Desktop & Dock > Hot Corners
# Disable autocorrect as its's annoying when typing code
Settings > Keyboard > Text Input > Input Sources > Edit > "Disable All"
# Set a blazingly fast keyboard repeat rate
Settings > Keyboard > "Key repeat rate" and "Delay until repeat"
# Show icons hard drives, servers, removable media on the desktop
# Show folder on the side bar
# Show file extensions
Finder > Settings > "Change settings in all tabs"
Open folder /
Finder > View > Show view option
- Always open in column view
- Group by None
- Sort by Date Modified
# Finder: show hidden files by default
defaults write com.apple.finder AppleShowAllFiles -bool true
# Finder: show path bar
defaults write com.apple.finder ShowPathbar -bool true
# Display full POSIX path as Finder window title
defaults write com.apple.finder _FXShowPosixPathInTitle -bool true
# Keep folders on top when sorting by name
defaults write com.apple.finder _FXSortFoldersFirst -bool true
# When performing a search, search the current folder by default
defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"
# Avoid creating .DS_Store files on network or USB volumes
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true
## Disable disk image verification
defaults write com.apple.frameworks.diskimages skip-verify -bool true
defaults write com.apple.frameworks.diskimages skip-verify-locked -bool true
defaults write com.apple.frameworks.diskimages skip-verify-remote -bool true
# Automatically open a new Finder window when a volume is mounted
defaults write com.apple.frameworks.diskimages auto-open-ro-root -bool true
defaults write com.apple.frameworks.diskimages auto-open-rw-root -bool true
defaults write com.apple.finder OpenWindowForNewRemovableDisk -bool true
# Use list view in all Finder windows by default
# Four-letter codes for the other view modes:
# 'Flwv': Cover flow view
# 'Nlsv': List view
# 'icnv': Icon view
# 'clmv': Column view
defaults write com.apple.finder FXPreferredViewStyle -string "clmv"
# Show the ~/Library folder
chflags nohidden ~/Library
# Expand the following File Info panes:
# “General”, “Open with”, and “Name & Extension”
defaults write com.apple.finder FXInfoPanesExpanded -dict \
General -bool true \
OpenWith -bool true \
Name -bool true
# TextEdit
# Use plain text mode for new TextEdit documents
defaults write com.apple.TextEdit RichText -int 0
# Open and save files as UTF-8 in TextEdit
defaults write com.apple.TextEdit PlainTextEncoding -int 4
defaults write com.apple.TextEdit PlainTextEncodingForWrite -int 4
# Photos
# Prevent Photos from opening automatically when devices are plugged in
defaults -currentHost write com.apple.ImageCapture disableHotPlug -bool true
Note: Restart computer
https://github.com/ahmetsulek/flat-terminal
Size of the Terminal window: 110x36
https://github.com/zsh-users/zsh-autosuggestions https://github.com/zsh-users/zsh-syntax-highlighting
plugins=(
git
zsh-autosuggestions
sh-syntax-highlighting
)
alias ll="ls -AFGlhp"