This setup process involves a few manual prerequisite steps, followed by an automated script (install.sh
) that handles the bulk of the configuration. Finally, a couple of post-installation manual steps are required to complete the setup.
Manual Prerequisites:
- Install iTerm2
- Configure iTerm2:
- Go to Profiles > Keys > Key Bindings > Presets
- Select "Natural Text Editing"
The install.sh
script will perform the following actions:
- Install Homebrew (if not already installed).
- Install
neovim
,pyenv
, andskhd
(a hotkey daemon for macOS) using Homebrew. - Back up your existing
~/.zshrc
to~/.zshrc.backup
(if it exists). - Create symbolic links for
.zshrc
,nvim
, andskhdrc
configuration files. - Set macOS keyboard repeat rate and Press and Hold preferences for a faster typing experience.
- Configure Git to disable the pager for the
branch
command, improving its usability.
- Clone this repository (if you haven't already):
git clone <your-repo-url> ~/dotfiles cd ~/dotfiles
- Make the installation script executable:
chmod +x install.sh
- Run the installation script:
./install.sh
After running the install.sh
script, you still need to perform the following manual steps:
- Install Fira Code Font:
- Download and install a Fira Code Nerd Font from NerdFonts.
- Select the
.ttf
font you like, double-click it, and install it. - In iTerm2, go to Profiles > Your Profile > Text > Font, and select the installed Fira Code font.
- Install Vim Plugins:
- Open Neovim (
nvim
). - Run the command
:PlugInstall
to install all configured plugins.
- Open Neovim (
- Apply Configuration:
- Open a new terminal tab/window, or
- Run
source ~/.zshrc
in your current terminal to apply the Zsh and p10k configuration.
Enjoy your new setup!