Go to Accessibility > Keyboard Settings and adjusts Key repeat rate to Fast and Delay until repeat to Short.
# To disable the Apple press and hold for VSCode only, run this command in a terminal:
defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false
# Then restart VSCode.
# To re-enable, run this command in a terminal:
defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool true
Install Homebrew, followed by the software listed in the Brewfile.
# These could also be in an install script.
# Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Then pass in the Brewfile location...
brew bundle --file ~/.dotfiles/Brewfile
# ...or move to the directory first.
cd ~/.dotfiles && brew bundle
# To create Brewfile
brew bundle dump --describe
Clone this repo into new hidden directory.
# Use SSH (if already set up)...
git clone git@github.com:mavericks-db/dotfiles.git ~/.dotfiles
# ...or use HTTPS and switch remotes later.
git clone https://github.com/mavericks-db/dotfiles.git ~/.dotfiles
Create symlinks in the Home directory to the real files in the repo.
# List available versions
nvm list
# Install the latest LTS version
nvm install --lts
# Use the latest LTS version
nvm use --lts
# Check installed node version
node --version
# Clone the repository
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/Powerlevel10k
# Set ZSH_THEME="powerlevel10k/powerlevel10k" in ~/.zshrc
# Type p10k configure
# curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:789
# If you can't open Github, use the domestic brew installation script on Gitee
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
Set-up SSH key:
# Generating a SSH key in the terminal
ssh-keygen -t ed25519 -C "balitaanmavericks@gmail.com"
# Start up the ssh-agent in the background
eval "$(ssh-agent -s)"
# If not exists, create a config file
touch ~/.ssh/config
# Open the config file
open ~/.ssh/config
# Add the following lines to the config file
Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_ed25519
# Add your SSH private key to the ssh-agent
ssh-add ~/.ssh/id_ed25519