Using git bare to manage dotfiles.
Clone the repository using --bare
option:
git clone https://github.com/Thiago4532/dotfiles --depth=1 --bare ~/.dotfiles
Configure git to show only tracked files and checkout files:
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME' # Dotfiles
dotfiles config --local status.showUntrackedFiles no
dotfiles update --init
dotfiles checkout --force
Install zplug to manage zsh plugins:
curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh | zsh
After that, run zplug install
to install all zsh plugins.
Install packer.nvim:
# Unix instructions
git clone --depth 1 https://github.com/wbthomason/packer.nvim\
~/.local/share/nvim/site/pack/packer/start/packer.nvim
After installing packer.nvim, run this command to install all the NeoVim plugins:
:lua require'plugins'.install()
Now, you must run this command to install all treesitter parsers:
:TSInstall all