/dotfiles

Configuration files used by me

Primary LanguageShell

Installation

Clone the repos

cd ~
git clone https://github.com/aming/dotfiles.git dotfiles

Update all the submodules

You could update the submodules to the latest commit available from the remote

git submodule update --init <submodules name>
# For all repos
git submodule update --init --recursive

Install Homebrew and tools

Install the Homebrew tools

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

Install Batteries to executable included

brew install aming/aming/Batteries

Initial Neovim plugins

During the first time starting the Neovim, it will automatically download the Lazy.nvim to the .config/ folder. After the Lazy.nvim installed and Neovim started. Run :Lazy to start the Lazy console in Neovim. And then I to install all plugins.

How-to

ZSH

Install a new oh-my-zsh plugin

Install the plugin by adding a new submodule to this repos

  1. Checkout the package to $ZSH_CUSTOM/plugins (zsh/oh-my-zsh-plugins/plugins/)
git submodule add <repos> zsh/oh-my-zsh-plugins/plugins/<plugin_name>
git submodule init
  1. Enable it in the .zshrc
plugins=(other-plugins <plugin_name>)
  1. Check in the changes
git add .gitmodules
git commit

Removing a plugin

  1. Remove the plugin from plugins list in the zshrc
plugins=(other-plugins)
  1. Remove the submodules
git submodule rm zsh/oh-my-zsh-plugins/plugins/<plugin_name>

Vim

  1. To add a new plugin, create a new Lazy spec file under nvim/lua/plugins. And run the :Lazy to start the Lazy Console to install the plugins list. And remember to check in nvim/lazy-lock.json for locked plugin versions.