My dotfiles.
-
Clone this project to
~/dotfiles
, or wherever.git clone --depth 1 --recurse-submodules --shallow-submodules --remote-submodules https://github.com/ma11hew28/dotfiles.git ~/dotfiles
-
Change the values of
name
andemail
inconfig/git/config
. -
Optional: Create a file named
zshrc_private
for any private commands. -
Back up these files and directories because step 6 replaces them.
~/.config/git/config
~/.config/git/ignore
~/.vim
~/.zshenv
~/.zshrc
~/.zshrc_private
-
Restart Terminal and change directory to this project.
cd ~/dotfiles
-
Install dotfiles.
zsh install.zsh dotfiles
-
Restart Terminal.
This project uses Git submodules to manage Vim packages.
git submodule
git submodule add --depth 1 https://github.com/rust-lang/rust.vim.git vim/pack/bundle/start/rust.vim
git submodule init && git submodule foreach --recursive 'git fetch --depth=1 && git gc --aggressive --prune=now && git submodule init'
git rm vim/pack/bundle/start/rust.vim && rm -rf .git/vim/pack/bundle/start/rust.vim
-
Restart Terminal and change directory to this project.
cd ~/dotfiles
-
Update this project.
git pull
-
Update all the Vim packages, as above.
-
Do install steps 5–7.
-
Restart Terminal and change directory to this project.
cd ~/dotfiles
-
Uninstall dotfiles.
zsh uninstall.zsh
-
Restart Terminal.
-
Optional: Move anything you want to keep out of this project.
-
Remove this project.
rm -rf ~/dotfiles