This repository contains a custom zsh configuration file, optimized for Oh My Zsh, custom path variables, and a streamlined setup for productivity.
- Prerequisites
- Installation
- Setting Up Neovim with LazyVim
- Applying the Nord Theme
- Zsh Plugins and Dependencies
- Zsh: Ensure you have zsh installed on your system. Verify with:
zsh --version
- Oh My Zsh: Required for managing themes and plugins.
- Homebrew (macOS/Linux): Used for installing dependencies.
Clone or download the .zshrc
file to your home directory:
git clone <repository-url> ~/.zsh
cd ~/.zsh
Install Oh My Zsh by running:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Copy the provided .zshrc
file to your home directory:
cp .zshrc ~/.zshrc
Then, reload the configuration:
source ~/.zshrc
-
Install Neovim:
brew install neovim
-
Install LazyVim:
git clone https://github.com/LazyVim/starter ~/.config/nvim
Launch Neovim to complete the LazyVim setup:
nvim
-
Configure Plugins: Modify
~/.config/nvim/init.lua
or~/.config/nvim/lua/user/plugins.lua
as needed.
-
Install Nord Vim Theme: Add the following to your Neovim config:
use 'arcticicestudio/nord-vim' vim.cmd('colorscheme nord')
-
Apply Nord to Terminal:
- iTerm2 (macOS): Go to
Preferences > Profiles > Colors
and import the Nord theme. - GNOME Terminal: Use Nord GNOME Terminal.
- iTerm2 (macOS): Go to
The .zshrc
includes various plugins to enhance functionality. Install them as follows:
-
Spaceship Prompt:
brew install spaceship
Add to
.zshrc
:source /usr/local/opt/spaceship/spaceship.zsh
-
Syntax Highlighting:
brew install zsh-syntax-highlighting
Add to
.zshrc
:source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
-
Autosuggestions:
brew install zsh-autosuggestions
Add to
.zshrc
:source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh
-
Additional Plugins:
- git: Provides Git commands.
- command-not-found: Alerts when a command is missing.
- safe-paste: Prevents accidental pastes.
- colored-man-pages: Colors man pages.
- sudo: Suggests using sudo when a command fails.
- vscode: Shortcuts for VS Code.
- auto-notify: Notifies when long-running jobs are done.
- git-auto-fetch: Auto-fetches Git updates.
- macos: macOS-specific commands.
Enable these plugins by adding them in the plugins section of .zshrc
:
plugins=(git command-not-found safe-paste colored-man-pages sudo vscode auto-notify git-auto-fetch macos)
- Other Paths:
- Python Path: Adjust for your Python installation if needed.
- Make Flags: Enables parallel jobs, set as needed:
export MAKEFLAGS="-j8"