Skip to content

guntas-13/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

My personal macOS dotfiles managed with GNU Stow.

  • Zsh: Shell configuration with Powerlevel10k theme and useful plugins
  • Neovim: Complete Neovim configuration (NvChad)
  • Nerd Fonts: Font patches for Powerlevel10k and Neovim
  • Alacritty: Terminal emulator configuration
  • Ghostty: Another terminal emulator
  • Tmux: Terminal multiplexer configuration
  • TPM: Tmux Plugin Manager
  • Miniconda: Python environment (conda-env.yml)

Quick Start

Prerequisites

Install Homebrew (if not already installed):

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Required Packages

Install essential tools via Homebrew:

brew install git stow zsh neovim tmux fzf zoxide tree coreutils gnu-sed git-lfs ruby-build vim --override-system-vi osx-cpu-temp btop bat eza

Installation

  1. Clone the repository

    git clone https://github.com/guntas-13/dotfiles.git $HOME/dotfiles
    cd $HOME/dotfiles
  2. Set Zsh as the default shell

    chsh -s $(which zsh)

    Restart your terminal for the changes to take effect.

  3. Install Oh My Zsh

    Install Oh My Zsh using the official installation script:

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

    When prompted, allow Oh My Zsh to set up the default configuration. You'll overwrite it in the next step.

  4. Deploy dotfiles with Stow

    cd $HOME/dotfiles
    stow --adopt .

    After running stow --adopt ., the following symlinks will be created:

    ~/.zshrc           -> ~/dotfiles/.zshrc
    ~/.config/nvim/    -> ~/dotfiles/.config/nvim/
    ~/.config/alacritty/ -> ~/dotfiles/.config/alacritty/
    ~/.config/tmux/    -> ~/dotfiles/.config/tmux/
    
  5. Download Nerd Fonts

    Download and install a Nerd Font from the Nerd Fonts repository or their website or use Homebrew:

    brew install --cask font-<FONT NAME>-nerd-font
  6. Download Alacritty and/or Ghostty

    Visit Alacritty and/or Ghostty to download and install the latest release for macOS.

     brew install --cask alacritty ghostty
  7. Set up Conda environment

    Download & Install from miniconda website or use the following commands:

    # Download and install Miniconda
    curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh
    bash Miniconda3-latest-MacOSX-arm64.sh

    Remove the following block from .zshrc file. This block was automatically added during past conda initialization and a new block will be appended during the above installation steps.

    Remove this block!
      # >>> conda initialize >>>
      # !! Contents within this block are managed by 'conda init' !!
      __conda_setup="$('/Users/guntas13/micromamba/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
      if [ $? -eq 0 ]; then
         eval "$__conda_setup"
      else
         if [ -f "/Users/guntas13/micromamba/etc/profile.d/conda.sh" ]; then
            . "/Users/guntas13/micromamba/etc/profile.d/conda.sh"
         else
            export PATH="/Users/guntas13/micromamba/bin:$PATH"
         fi
      fi
      unset __conda_setup
    
    # <<< conda initialize <<<
    
    Initialize conda (if not done during installation):
    conda init zsh

    Restart your terminal, then load the conda environment:

    cd $HOME/dotfiles
    conda env create -f conda-env.yml
    conda activate sttPy10

    To update the conda-env.yml file after installing new packages, run:

    conda env export --no-builds > $HOME/dotfiles/conda-env.yml
  8. Install Tmux Plugin Manager (TPM)

    Follow instructions from the TPM repository:

    git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
  9. Configure Powerlevel10k

    p10k configure
  10. Tmux Install Packages

prefix is overwritten to Ctrl + Space in this configuration.
Inside a Tmux session, press prefix + I (capital i) to install Tmux plugins.

Usage

# Start a new Tmux session
tmux
# Start NeoChad
nvim
vi # alias to nvim
vim # alias to nvim

prefix is overwritten to Ctrl + Space in this configuration.
Inside a Tmux session, press prefix + I (capital i) to install Tmux plugins.

Images

Resources

Tools & Package Managers

Shell & Terminal

Editors & Multiplexers

Thanks to the YouTube Channels: Dreams of Anatomy and Dreams of Code. Check out these vidoes:

This Zsh config is perhaps my favorite one yet.

IMAGE ALT TEXT

Turn VIM into a full featured IDE with only one command

IMAGE ALT TEXT

Tmux has forever changed the way I write code.

IMAGE ALT TEXT

Stow has forever changed the way I manage my dotfiles

IMAGE ALT TEXT

About

my macOS dotfiles for zsh, NeoVim, tmux, alacritty

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published