Skip to content

TheRealMilesLee/ShellProfile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zsh Configuration Guide

This repository contains a custom zsh configuration file, optimized for Oh My Zsh, custom path variables, and a streamlined setup for productivity.

Table of Contents

  1. Prerequisites
  2. Installation
  3. Setting Up Neovim with LazyVim
  4. Applying the Nord Theme
  5. Zsh Plugins and Dependencies

Prerequisites

  • 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.

Installation

1. Clone this Repository

Clone or download the .zshrc file to your home directory:

git clone <repository-url> ~/.zsh
cd ~/.zsh

2. Install Oh My Zsh

Install Oh My Zsh by running:

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

3. Update the .zshrc File

Copy the provided .zshrc file to your home directory:

cp .zshrc ~/.zshrc

Then, reload the configuration:

source ~/.zshrc

Setting Up Neovim with LazyVim

  1. Install Neovim:

    brew install neovim
  2. Install LazyVim:

    git clone https://github.com/LazyVim/starter ~/.config/nvim

    Launch Neovim to complete the LazyVim setup:

    nvim
  3. Configure Plugins: Modify ~/.config/nvim/init.lua or ~/.config/nvim/lua/user/plugins.lua as needed.

Applying the Nord Theme

  1. Install Nord Vim Theme: Add the following to your Neovim config:

    use 'arcticicestudio/nord-vim'
    vim.cmd('colorscheme nord')
  2. Apply Nord to Terminal:

    • iTerm2 (macOS): Go to Preferences > Profiles > Colors and import the Nord theme.
    • GNOME Terminal: Use Nord GNOME Terminal.

Zsh Plugins and Dependencies

The .zshrc includes various plugins to enhance functionality. Install them as follows:

  1. Spaceship Prompt:

    brew install spaceship

    Add to .zshrc:

    source /usr/local/opt/spaceship/spaceship.zsh
  2. Syntax Highlighting:

    brew install zsh-syntax-highlighting

    Add to .zshrc:

    source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
  3. Autosuggestions:

    brew install zsh-autosuggestions

    Add to .zshrc:

    source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh
  4. 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)
  1. Other Paths:
    • Python Path: Adjust for your Python installation if needed.
    • Make Flags: Enables parallel jobs, set as needed:
      export MAKEFLAGS="-j8"

About

A shell config file for my MacBook Pro

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages